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

    Dynamically add options to dropdown via URL parameter

    Asked by NGHS on September 23, 2015 at 02:49 PM

    Hello! I am working on a medical provider profile template for our group that will let users view each doctor and request an appointment (via JotForm) at a certain day/time/practice location. I am going to use one form on all doctor pages by embedding the form in our php template. Let's say Dr. Bob has 4 locations. I would like to add his four locations as options in a dropdown. Can this be done via URL parameter?

    I'm thinking technically here. What if I populate a hidden field with the location values via URL parameter. Can I take the options in the hidden field and make those options in the "Preferred Location" dropdown?

     

    Thanks!

    add options drop down items prepopulation
  • Profile Image
    JotForm Support

    Answered by Mike on September 23, 2015 at 05:45 PM

    Thank you for contacting us.

    With prepopulation by URL parameters you can select one of existing Drop Down items, but I doubt about adding new items.

    It should be possible to edit Drop Down question items via API, so you might consider if this is an option in your case.

    http://api.jotform.com/docs/#post-form-id-question-id

    Please feel free to contact us if you need any further assistance.