Show same set of questions in two different locations in form, based on condition

  • Profile Image
    Asked on April 26, 2017 at 01:53 PM


    Here is the desired functionality of my form:

    1) If the answer to X question is "yes," show Y set of questions on page 3.

    2) If the answer to X question is "no," show Y set of questions on page 13.

    We are currently accomplishing this by duplicating the questions on page 3 and page 13, and then showing or hiding those pages based on the response to question X. This makes the fields distinct questions with distinct unique field names.

    This setup causes a problem in the notification email. To capture potential answers from both sections in the email, we have to duplicate the fields in the email template. Only one page will ever be in use at a time (either page 3 or page 13), so having the fields duplicated in the email is redundant. There are about 50 fields in the set of questions, so it takes up a lot of space to have them twice, especially when one set will always be empty because the page was hidden.

    Is there a way to achieve the desired functionality that would keep the field names the same in both locations? Or is there a way to ensure only the filled-in set of fields shows up in the email? (We are doing a lot of customization to the email template design, so I'm not sure if that will override the "Hide Empty Fields" setting.)



  • Profile Image
    Answered on April 26, 2017 at 03:18 PM

    The way you are currently accomplishing this is the only way. You need to have same fields on both pages and you need to use conditional logic to hide/show them.

    If the fields are empty by default they will not be shown inside of email Notification. However sometimes editing of Notification table can disable this option.

    I made several test on my sample form and "Hide Empty Fields" option is still working after I made some edits to Notification template. 

    Please provide us ID of the form you are working on, so that we can clone it and test it. 

    You can also create new Notification and edit the email template, to see if "Hide Empty Fields" option will work.