Button to show and hide fields?

  • Profile Image
    giftcardbuddy159
    Asked on March 24, 2018 at 10:07 PM

    I need it so when the user clicks a button (one that looks similar to the submit button) fields are shown and hidden. I know how to hide and show fields etc. but I can't seem to find an option to add a button?

  • Profile Image
    EltonCris
    Answered on March 25, 2018 at 01:36 AM

    You can't use a submit button to trigger show/hide condition. You will have to use a checkbox field or a radio button.

    If you want the checkbox/radio to look like a button, you can inject custom CSS codes to your form. If you need further assistance, let us know.

    Alternatively, you can use radio/checkbox button widgets, they come with a fancy button style.


  • Profile Image
    giftcardbuddy159
    Answered on March 25, 2018 at 05:34 AM

    Yea obviously you cant use the submit button to hide or show fields because IT'S THE SUBMIT button... I simply meant a button that looks like the submit button.

    Yea that's the widget I am using now, it just looks like crap.

  • Profile Image
    liyam
    Answered on March 25, 2018 at 08:10 AM

    Unfortunately we do not have a button that you can use for running conditions or for toggling the display of another field. But you can check out this widget other than what Elton suggested: https://widgets.jotform.com/widget/bootstrap_switch_field

    Feel free to let us know of your thoughts or if you have other concerns.