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

    How to prepopulate dropdown field on a form?

    Asked by billylevine2003gmailcom on June 28, 2013 at 07:01 AM

    two question can I use the above but instead of override the pre-populate with an input field I want to use a drop down. In other word how due I make the pre-polulate the default for the drop down



    This is a re-post of a comment on How to Give Users the Ability to Easily Copy Content from One Field to Another

  • Profile Image
    JotForm Support

    Answered by Welvin on June 28, 2013 at 07:42 AM

    Hi,

    You should be able to do that if you have the right field name and the dropdown option strings. I've made an example to my form: 

    Original Form: http://jotformpro.com/form/30762575623962

    Prepopulated Form: http://jotformpro.com/form/30762575623962?chooseSnack=Cake

    Let us know your form URL and let us what dropdown field and what should be the default value and we'll do our best to help you.

     

    Thanks

  • Profile Image

    Answered by billylevine2003gmailcom on June 28, 2013 at 07:58 AM

    I am sorry not quite fillowing the example above....I do see that the url provide a value for the drop down which can be overwritten. I am asking (and maybe it is my lack of understanding) that I can set the defualt value of a drop down within a form (not calling another url) based on the value of a field in a prior section of the form but I can override it by selecting a new value.

     

    Is this possible with Jotforms or can i/how would it be done to modify the original example where a values was assigned based on input from a prior field.

  • Profile Image
    JotForm Support

    Answered by Welvin on June 28, 2013 at 09:01 AM

    Hi,

    Unfortunately, that is not possible. You should add an options to the dropdown field so we can call one value to be the default option when prepopulating.

    Thanks

  • Profile Image

    Answered by billylevine2003gmailcom on June 28, 2013 at 09:03 AM
    that sound fine ......if I here you correctly we have options list to but
    we pass the value of the default .....is that correct?
  • Profile Image
    JotForm Support

    Answered by Welvin on June 28, 2013 at 09:41 AM

    We have to add a list of options to the dropdown field. The default is blank as you could see on the form: http://jotformpro.com/form/30762575623962. We automatically select an option via URL Parameters: http://jotformpro.com/form/30762575623962?chooseSnack=Cake

    So yes, we select a value as a default.

     

    Thanks

  • Profile Image

    Answered by Buddy  on April 24, 2015 at 01:16 PM

    Hello Welvin, Im working on something for my department and it basically requires the above topic of pre-populating a drop down field with a department specific option. Id like to know if you can help in teaching me how to do this. The example form you gave (with the cake instance) is exactly what im trying to achieve.
  • Profile Image

    Answered by raul on April 24, 2015 at 03:14 PM

    @Buddy

    Since this is an old thread, I've moved it to a separate one so we can properly address it.
    You will be answered here: http://www.jotform.com/answers/558618