How to Remove a Blank Page Generated by Logic
Overview
- The system will automatically skip any pages on the Form that do not contain any data.
- When working with logic, you may encounter a situation where the page has content on it but is hidden because certain triggers/conditions were not met.
- The page is not actually blank in this case.
- The Registrant will see a blank page.
Solution: Use JavaScript in a Custom HTML Section
- You can add JavaScript to the Form to submit and pass through the blank page.
- The best method is to use a Custom HTML Section.
- Include logic to ensure the script only triggers when the conditions that cause a Registrant to see a blank page are met.
JavaScript
<script>
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();
}
});
</script>
<script>
jQuery().ready(function(){
jQuery('body').css("display","none");
setTimeout(function() {jQuery('#submitForm').click();}, 200);
});
</script>
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.
Creating a Logic Rule to apply the Custom HTML
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.
Was this article helpful?
Was this article helpful? 7 out of 7 found this helpful
Have more questions?
Submit a request
Return to top
Related articles
- Integration Settings Needed for Stripe Payment Processor
- Form Entry & Security
- Extracting all attendees' information
- Themes, Best Practices, Misc - Adding JavaScript, Images size for Banner, etc.
- Session Locations
Comments
- Peach Piodos — Good job, Chris! (12 years ago)
- Dominick Fontana — So happy I checked this page. Works perfectly! (12 years ago)
- Old Justin — Yes, this works like a charm and is well coded! Great work Chris! (12 years ago)
- Mary Arabaca — Amazing! (12 years ago)
- Amber Langham — I used it in a custom HTML section and it worked great, thanks! (12 years ago)
Please sign in to leave a comment.
Certian Help Center