How to show/hide fields based on user's answer?

  • cwmn
    Asked on March 18, 2017 at 10:15 PM
    I was thinking of having a link which would either make visible the question forms or that it would link to a secondary tab on the form giving a similar appear/disappear feeling. So how do I create a text link to either change field appearance show/hide or make it go to a tab?
  • Kevin Support Team Lead
    Replied on March 18, 2017 at 10:25 PM

    You cannot hide/show fields when clicking on a link, you will only be able to do it by asking your user a question, then based on the answer you may show or hide the needed fields. 

    To get more info about it, please  check this guide: How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    Let us know if you have any question. 

  • cwmn
    Replied on March 19, 2017 at 3:46 AM
    But could you design a form with tabs and use a link to navigate between tabs?
    Sent from my iPhone
    ...
  • David JotForm Support Manager
    Replied on March 19, 2017 at 11:54 AM

    We already have a widget to create tabs in your forms, please try it: https://widgets.jotform.com/widget/form_tabs 

    How to show/hide fields based on users answer?  Image 1 Screenshot 20

    It will allow you to navigate between tabs just by click  on them. Let us know if you need more help. 

     

  • cwmn
    Replied on March 19, 2017 at 2:46 PM
    I see the widget for tabs, the question is can I use a link to navigate between tab. So I use one tab as a home screen to present a basic home screen if they want more info they click a more info button which takes them to the form on the second tab. It appears you can use links to navigate to anchors and can I get it to navigate to a different tab?
    Thanks,
    Chuck
    Sent from my iPhone
    ...
  • Welvin Support Team Lead
    Replied on March 19, 2017 at 4:18 PM

    I'm sorry, but that is not possible. You have to advise the user to click on the tab if they want more information as you have outlined. Please that the Form Tabs widget requires you to have a page break in the form.

    https://www.jotform.com/help/119-How-to-Create-Multi-Page-Forms