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

    Change Values in a Dropdown list dynamically through conditional logic?

    Asked by nickbh on September 18, 2015 at 11:14 AM

    Can you change Values in a Dropdown list dynamically through conditional logic?

     

    Ie if I have a radio button - eg Male or Female.

     

    My Dropdown may contain

    *Mens Shirts

    *Mens Trousers

    *Ladies Dress

     

    If the radio button was sleected to Male I would only want the dropdown to remove Ladies Dress from the selection?

     

    Not sure if its possible - but worth asking.

     

    Thanks

     

    dropdown list change values in through
  • Profile Image

    Answered by victor on September 18, 2015 at 01:59 PM

    Hi,

    This can be accomplished by having a different dropdown for each selection. Then using the SHOW/HIDE condition, you may show just the dopdown you like.

    Please let us know if this helps.

    Regards

  • Profile Image

    Answered by nickbh on September 19, 2015 at 06:59 AM

    Hi,

     

    Yes I thought about that way.  But it wouldn't really work in the live situation I am looking at.  Essentially it is related to one of my other posts.

     

    I have a large list of locations - a PICKUP LOCATION and a DROP OFF LOCATION.  I was looking to see if there was a a way to remove the selection made in the pickup dropdown from the dropoff dropdown.  

     

    Its not a problem that the feature is not available as I can trap the duplicate by using the conditional logic calculation offered by one of your colleagues.  

     

    Thanks

     

  • Profile Image

    Answered by Ben on September 20, 2015 at 02:40 AM

    I am glad to hear that the option to check the values in dropdown works for you so that this is not needed any more, since the only way to accomplish this would be as my colleague had suggested it - at least through the Form Builder.

    It would be possible to do this through the source code modifications - but you would need to create the js code that does this, plus to re-integrate your changes each time you make a change to your form.