Content

How to Remove a Blank Page Generated by Logic

Introduction

The system will automatically skip any pages on the Form that do not contain any data.

In logic workflows, a page can contain content but be hidden because certain triggers or conditions are not met.

If the page is not actually blank, the system will not automatically skip the page.

As a result, the Registrant will see a blank page.

What causes a blank page and how to fix

In the above case, you can add JavaScript to the Form to submit and pass through the blank page.

The best way to do this is by using a Custom HTML Section and including logic to ensure it only triggers when the conditions that cause a Registrant to see a blank page are met.

Definitions

Custom HTML Section is a feature that allows you to add HTML and JavaScript to a Form. JavaScript is a scripting language used to perform actions in a web page.

JavaScript snippets

jQuery().ready(function(){
var x = jQuery('[type=text], select, [type=radio], [type=checkbox]').length;
//console.log(x);
if(x <= 0)
{
jQuery('*').css("display","none");
jQuery('[name=submitForm]').click();
}
});

jQuery().ready(function(){
jQuery('body').css("display","none");
setTimeout(function() {jQuery('#submitForm').click();}, 200);
});

Creating a Custom HTML Section and placing it on your Form

1. Navigate to Plan > Forms > Select your Form > Custom HTML.

2. Click Add New.

3. Copy and paste the script above into the Text Above Header field, enter a Section Name (e.g. Custom HTML Remove Blank Page), and click Save.

4. Navigate to Plan > Forms > Select your Form > Logic, create a Label (e.g. Remove blank page), and click Save.

5. Click Add New to create a new Logic Rule.

6. Under List Rule Details, enter a Name (e.g. Custom HTML), and select the proper Section.

7. Under Actions, select Display Custom HTML Sections and the Custom HTML Block you created, based on the conditions you applied.

8. Navigate to Plan > Forms > Select your Form > Setup, place the Logic Rule in the Online Form Sequence, and click Save.

Related articles