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

    Is it possible to fill a dropdown dynamically using javascript from json?

    Asked by kimg10 on January 17, 2015 at 06:04 PM

    I have a script which will allow me to pull data dynamically from a web-link API.  The link is:  https://www.vacationcrm.com/travelmvc/api/Service/GetAgents?apikey=XXXX-XXXX-XXXX (Obviously the XXXX-XXXX will be replaced with he API key itself).  Is it possible to use this code as the options for a dropdown in JotForm?  I can not seem to find any option within the settings of the dropdown field which will take incoming code, only things that will show source or outgoing code.

    I am trying to use this specifically for the dropdown labeled "Certified Travel Agent" in the "Travel Information Form - Updated".

    Thanks!

     

    Page URL:
    https://secure.jotform.us/form/50156341645148

    fill JotForm dropdown field style size source
  • Profile Image

    Answered by Shadae on January 17, 2015 at 10:08 PM

    Hi kimg10,

    Unfortunately it is not possible to input a script within JotForm to create your dropdown menu options.

    This however can be done if you download the full source code of your form and input the script by editing the source code.

    http://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form 

    I hope this helps, please inform us if you need further assistance.