Dynamically add options to dropdown via URL parameter

  • Profile Image
    NGHS
    Asked 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!

  • Profile Image
    Mike
    Answered 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.