What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Need help hiding fields with conditions

    Asked by adamdurbridge on November 21, 2012 at 05:58 AM

    Hello all.

    I've made a simple form where all fields appear in one page, but that should show/hide based on the value of the first dropdown box.

    When the first dropdown menu is blank, all fields should be hidden. I therefore asigned the rule: When [drop down] is empty, then hide [all hidden].

    For the first item in the drop down, i created a new rule: When [drop down] = [option 1], then show / hide fields acordingly.

    Both rules work on there own, but as soon as they're used together, things go very wrong .. please help!!

    Form found here: http://form.jotformeu.com/form/23242332482345

    Page URL:
    http://form.jotformeu.com/form/23242332482345

  • Profile Image

    Answered by fxr on November 21, 2012 at 06:40 AM

    I find form logic works much better if you try to use 'Shows' exclusively. 

    Are you able to get rid of that 'Hide' rule on the first dropdown and just use 'shows' for each of the options? 

  • Profile Image

    Answered by adamdurbridge on November 21, 2012 at 07:58 AM

    Possibly .. I'll give it a go

  • Profile Image

    Answered by adamdurbridge on November 21, 2012 at 08:37 AM

    No sucess. Any suggestions as to how to hide things without using the 'hide' option??

  • Profile Image

    Answered by adamdurbridge on November 21, 2012 at 08:56 AM

    OK.. think I've worked out a work around.. bad logic going on in the jotform codebase for this section tho!!!!!

  • Profile Image

    Answered by fxr on November 21, 2012 at 08:59 AM

    OK. Cool.. yeah if you are showing/hiding fields which are themselves are dependent on other which have been hidden or shown, it can get a logically a little complicated. 

    I have always found best success if you try to stick to using 'SHOW's in your condition logic. 

    --

    If you do get stuck again, let us know where and which fields should be shown and when and we try to help out.

    Thanks.

  • Profile Image

    Answered by adamdurbridge on November 21, 2012 at 09:21 AM

    Bad news. Still not working.

    I re-ordered the whole form to only use SHOW's, and it's still behaving very strangely.

    Where the same field is used multiple times, it doesn't show at all UNTIL the final rule.

    Additinally, when using the form in this way the primary dropdown box doesn't hold it's value.

    Please advise: 

     

    http://form.jotformeu.com/form/23242332482345

  • Profile Image
    JotForm Support

    Answered by NeilVicente on November 21, 2012 at 10:17 AM

    @adamdurbridge

    Gather the conditionally hidden fields that are common to two or more "Enquiry Type" then create separate conditions for them.

    For example, the following fields are common to all "Enquiry Types":

    Full Name
    Email
    Location
    Submit

    Therefore, you will need to remove those fields from the other conditions and create a separate condition for them, such as this:

     

    Check out this cloned sample:  http://www.jotformpro.com/form/23254217866962?

    I have NOT segregated the other common fields on that form, but hopefully you get the gist of this post.

  • Profile Image

    Answered by adamdurbridge on November 21, 2012 at 11:06 AM

    I get the gist, although after nearly 2 hour I am still baffled. In the form (you kindly cloned, many thanks) there are still some errors.. for instance, the 'date' field isn't common to all, and is SHOW'n in the LIVE RECORDING type, but NOT in other types where it is SHOWn..

    VERY confused indeed, please help!!

  • Profile Image

    Answered by adamdurbridge on November 21, 2012 at 11:10 AM

    @NeilVicente, very confused :/ please help

  • Profile Image
    JotForm Support

    Answered by NeilVicente on November 21, 2012 at 11:12 AM

    Adam,

    Like what I've mentioned, I did NOT separate the other common fields from the conditions on that sample form. I have separated only the fields that are common to ALL options (full name, email, location, submit).

    Please gather the other common fields and create conditions for them as I did with the fields mentioned above.

  • Profile Image

    Answered by adamdurbridge on November 21, 2012 at 11:19 AM

    In which case I just don't get it - why are you HIDING elements that you wanted included?????

  • Profile Image

    Answered by adamdurbridge on November 21, 2012 at 11:27 AM

    ..sort of maybe getting it now - you need to address this issue else you're always going to get stupid people like me asking the SAME OLD QUESTIONS .. ;)

    Very confusing, show / hide really ought to be just that... 

  • Profile Image
    JotForm Support

    Answered by NeilVicente on November 21, 2012 at 11:31 AM

    Please analyze the conditions I used and you'll realize why I am hiding them.

    Those fields are common to ALL "Enquiry Type" options except "Please Select", so if option selected is "Please Select" or if "Enquiry Type" is empty, the fields will be hidden.

    To make it short, I believe you should just avoid involving the same field in multiple (separate) conditional hide/show entries.

    If you're still confused, let me know and I'll finish modifying my cloned sample.