How to hide or display fields using URL?

  • PearsonUK-forms
    Asked on July 19, 2017 at 5:16 AM

    Hi there

     

    Is it possible to hide or display fields passing parameters?

     

    Something like?

     

    https://form.jotformeu.com/71982250216353?marketing=false

     

    Thanks

  • Sven
    Replied on July 19, 2017 at 6:22 AM

    If I understand you correctly, then unfortunately, it's not possible to hide or show fields using URL. You can however them hide them using the field properties in the advanced tab. 

    How to hide or display fields using URL? Image 1 Screenshot 20

     

     

  • PearsonUK-forms
    Replied on July 19, 2017 at 6:31 AM

    What I am trying to achieve is create one form instead of 12 and some how to display the information on the basis of requirements. 

     

    For example, if you look at the above screenshot, if I place the form on Marketing page it displays marketing check boxes and if I place the form on Strategy page it displays the information for strategy checkboxes and so on, how can I achieve that?

     

  • Sven
    Replied on July 19, 2017 at 6:56 AM

    You can use conditional logic to show/hide fields or pages. In your case, you can create a question to use it as the condition to determine which list to show. 

    I have cloned your form and made some changes, please see the final result:

    How to hide or display fields using URL? Image 1 Screenshot 30

     

    As you can see, I added a single choice question that will determine which list to show, I then created conditions to show those lists based on selection, the conditions look like this:

    How to hide or display fields using URL? Image 2 Screenshot 41

     

    Similarly, you will need to create a condition for each option that you add in the list, and set it to show the relevant list(s), and hide the rest. 

     

    Here's my cloned and edited version of your form, you can review/clone it via this URL:

    https://form.jotformpro.com/71992874198981

     

    Here's how to clone an existing form into your account:

    How-to-Clone-an-Existing-Form-from-a-URL

     

    For more information about conditional logic, please refer to the guide below:

    Smart-Forms-Using-Conditional-Logic

     

    Hope this helps, let us know if you need any further help.

  • PearsonUK-forms
    Replied on July 19, 2017 at 9:23 AM

    That's not going to work, we will be linking the forms from several pages and don't want the user to do an extra click, ideally, we want them to the right section. 

     

    Any other thoughts on this? 

  • Kiran Support Team Lead
    Replied on July 19, 2017 at 12:26 PM

    I am not sure if I understand your requirement correctly. Since you have already set some conditions to display the fields on the form based on the selection of interest field, I think using the pre-populated URL like below should help to achieve your requirement.

    https://form.jotformeu.com/71982250216353?myMain=Psychology

    In this example, Psychology is preselected so that when the form is loaded, the options for Psychology will be displayed automatically. 

    Let us know if that works for you. If your requirement is something different, please provide us with more information to assist you further.