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

    Conditional field are being shown if the same fields on a different page get shown

    Asked by resilico on July 22, 2015 at 10:00 AM

    This has to do with the the fields: How did you feel (and the next two fields) on pages 2, 3, 4 and 5.

    After I saw that page 2 was working correctly, I duplicated this page, with its conditions, to pages 3, 4 and 5.

    In three steps the user can define his emotion. Let's say that after the main page, you first go to page 2. You answer Yes to the question "Did you perform the planned activity?" and select some answer from the next three fields.

    Now you go to another page, let's say page 3. You will find there that the field "How did you feel? and the next two fields are shown, exactly as they are now in page 2, but without the values. You find the same situation on the next pages. These fields should initally be hidden.

    The same happens if you do not go from page 1 to page 2, but if you go from page 1 to one of the other pages.

    Pages 2, 3, 4 and 5 should work independently from each other.

    How can I prevent this situation from happening?

    conditions conditional field show / hide
  • Profile Image

    Answered by Ben on July 22, 2015 at 11:06 AM

    I am looking at the conditions and it seems that you have the them all set up to hide or show on that dropdown fields across pages.

    Looking into the conditions I also see something that I would like to point out and hope that you will not mind it, which is going to help you in future.

    When you set Show condition, our system adds the Hide condition for you.

    For example, if you want to set field1 to shown field2 on Yes and hide field3, but shown field3 if answer is No and hide field2 instead, then this is the best setup for that:

    1. if field1 is equal to Yes show field2

    2. if field1 is equal to No show field3

    These two conditions will do the following:

    1. Show the field2 if field1 is equal to Yes, and hide it if the selection is not Yes.

    2. Show the field2 is field1 is equal to No, and hide it if the selection is no No.

    This saves you time, and speeds up your form and is easier to maintain in the future since you only set show condition instead of both show and hide.

    Now since you also have a lot of fields that you hide or show at the same time, I would suggest using a different approach - with form collapse: Show or Hide multiple fields at once using form collapse tool

    This is better and faster option that can be used if the group of fields is one next to the other.

    If you have the fields in different locations of your form, then it is needed to use the show multiple / hide multiple option instead.

    You can see this gif of the conditions that were set up on your page 2 (and on all other pages):

    then compare it with the following after updating it as mentioned above:

    You should do the same changes to your other pages, but if you have any questions or need assistance with it, do let us know and we would be happy to assist.

    Also, when cloning the conditions, it is best to double check them afterwards as they are most likely going to have some small fixing needed.

  • Profile Image

    Answered by Ben on July 22, 2015 at 11:08 AM

    I am sorry Nathan, I seem to have forgotten to include the new form (clone of your own) with the modifications made: http://form.jotformpro.com/form/52024576151954

  • Profile Image

    Answered by resilico on July 22, 2015 at 05:11 PM

     

    Hi Ben,

    Thank you for teaching me about the Collapse tool. I will certainly start using it.

    But in your cloned form the problem for which I asked for assistance still exists.

    I tried it in my form: I put a Collapse tool on pages 2 and 3. It nicely hid the fields that should initially be hidden. But after I answered Yes to "Did you perform the planned activity?" on page 2 and selected some items from the drop-down boxes on page 2, and then I answered Yes to "Did you perform the planned activity?" on page 3, the identical drop-down boxes that are displayed on page 2 are now also displayed on page 3.

    So the problem was not really solved...

    Nathan Moked

     

  • Profile Image

    Answered by Ben on July 22, 2015 at 06:16 PM

    You are welcome, and I am sorry about the misunderstanding, I have only done one segment to show you what should be done, but not everything on the page, while the same must be repeated on all pages.

    I have attached a screen capture of how you can remove duplicate conditions on that single field:

    This way it will be easier for you to remove duplicates since there are 4 duplicates on each field, meaning that if you go into the Conditions wizard to see all of them, you would have at least 16 conditions per field (number of pages * number of fields * 4).

    Also, I would like to mention a feature that we have, which saves you time from setting up the conditions to clear out the value.

    To use it, you should go to Preferences -> Advanced Settings -> Clear hidden field value

    You can clear it on submit, right as it is hidden or not clear it at all.

    Just to point out, I have made a change on my form from the last time, but only for the first page, you can see the other pages not seeing the values of the first page as they did before, but they are still connected one to another.

    This is the link to the form Nathan: http://form.jotformpro.com/form/52024576151954

    Of course, do let us know if we can be of any assistance.

  • Profile Image

    Answered by resilico on July 23, 2015 at 06:39 AM

    Hello, 

    I'm glad with your patience, and with your willingness to be of assistance.

    Now that I've been making use of your good services for some time, I notice that often you clone a form and show that this works better than the original form. That is very good, of course, but you do not always show the inside of the form.

    A point in case is the use of the Collapse tool in form  http://form.jotformpro.com/form/52024576151954. I don't know if in your form the status of the Collapse tool is open or closed, I cannot see where you placed it and I cannot see where you placed the ending Collapse tool. 

    Page 2 in my form works correctly if the answer to "Did you perform the planned activity?" is Yes, but it does not respond if the answer is No or I did something else, in spite of the conditions for this field. I assume that this has to do with my use of the Collapse tool.

    Kind regards,

    Nathan Moked

     

  • Profile Image

    Answered by Ben on July 23, 2015 at 10:35 AM

    I notice that often you clone a form and show that this works better than the original form. That is very good, of course, but you do not always show the inside of the form.

    OK, I see what you mean Nathan. Actually I have mentioned the link to the form: http://form.jotformpro.com/form/52024576151954

    Now I have also mention this in the previous thread:

    You can clone the form above by following the steps here: How to Clone an Existing Form from a URL

    and have referenced it here by saying that you can clone it to your account, but here I did not include a link again since I see that you are getting quickly familiar with our system and thought that you would not need it :)

    When you clone the form to your account, you can inspect the changes and see the form within the form builder itself as well - and see how something was done :)

    Now to make sure that we are both on the same page, when I say Page 2 I mean the "Activity Component 1" page.

    There, when I switch through the dropdown it is working properly for me, but do take a look at the screen recording:

    As you can see when I go to that second page and click around the fields, they are behaving as they should (or am I missing something?) - this is the only page that I have fixed, since it takes a lot of time to fix one page due to many conditions and we have a limited time that we can use to provide the answer, but I will be happy to assist as much as possible, as well as my colleagues if there is need so do let us know.

    Oh and please, do clone it to your account to get a better view of it: How to Clone an Existing Form from a URL