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

    Can I populate the fields in a drop down box from another field

    Asked by mebarry on December 15, 2014 at 05:48 PM

     My form is for registration for a dog training event.  Users will list 2 of their dogs at the top of the form and then will register for up to 3 separate events.  I would like a drop dog box that lists the dog they are registering for each event.   Is it possible to have the drop down box titled "Primary Dog" have the text the user entered in "Call Name" under Dog #1 and "Call Name" under Dog #2.

    Page URL:
    http://form.jotformpro.com/form/43474852450962

    Screenshot
    workaround populate dropdowns dropdown options
  • Profile Image
    JotForm Support Manager

    Answered by Jeanette on December 15, 2014 at 08:52 PM

    Sounds like you are looking for a show/hide scenario upon a condition is met. Please check these guides:

    Smart Forms Using Conditional Logic

    Hide or Show Multiple Fields at Once

     

  • Profile Image

    Answered by mebarry on December 18, 2014 at 09:58 AM

    Hello,

     

    No that is not what I was looking for.  I was looking for the options in my drop down box to be choices that the user has typed in other fields.

     

    I have used conditional logic to have a text field that defaults to their primary dog.  That works for now but I would love the drop down feature if possible.

     

    Thanks!

  • Profile Image
    JotForm Support

    Answered by abajan on December 18, 2014 at 11:26 AM

    Okay, thanks for the clarification. While, to my knowledge, dropdowns can't be populated in that manner (at least not in the form builder), textboxes can. I think it would require a combination of Show/Hide and Update a form field value conditions:


    Let me work on a demo loosely based on your jotform and get back to you.


    Thanks

  • Profile Image

    Answered by mebarry on December 18, 2014 at 11:28 AM

    Thank you!

  • Profile Image
    JotForm Support

    Answered by david on December 18, 2014 at 12:57 PM

    On behalf of my colleague you are very welcome!  Let us know if there is anything else we can help you with and we will be happy to see what we can do.

  • Profile Image
    JotForm Support

    Answered by abajan on December 18, 2014 at 06:41 PM

    Hi again,

    Upon closer examination of your jotform, I realized that the solution I had in mind wouldn't work. However, I was still able to come up with a workaround where when the user selects "Dog 1 Above" in any of the relevant dropdowns, whatever is entered in the first "Call Name" box appears in a read-only textbox next to the dropdown. The same applies to the second dog's info. Also, I noticed that you had "Other" as one of the dropdown choices. Assuming that you would want the user to enter a third dog's name when that option is selected, a different textbox (not set to read-only) appears in place of the first box. To better understand what I mean, please test the functionality of this demo and let us know if it would work for you.

    Thanks

  • Profile Image

    Answered by mebarry on December 20, 2014 at 08:47 AM

    Thank you so much for working through that.  I am not sure that I will use this solution, but it is good to know it's out there.  How exactly do I set that up.

    Thanks.

  • Profile Image
    JotForm Support

    Answered by Welvin on December 20, 2014 at 10:12 AM

    You can clone the demo form made by my colleague, follow this guide: https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL, then you can check the saved conditional logic:

    Thanks

  • Profile Image

    Answered by mebarry on December 20, 2014 at 08:23 PM

    Thank you

  • Profile Image

    Answered by raul on December 20, 2014 at 09:48 PM

    On behalf of my colleagues, you're welcome.

    Feel free to open a new thread, if you need further assistance.
    Best Regards.