Ability to pre-populate dropdown and check box options

  • Profile Image
    uniqueaid
    Asked on January 05, 2019 at 04:03 PM

    All examples for multiple choice (checkbox) and dropdown work with predefined values. If control does not have values defined, I was not able to set them with my values via URL.

    For checkbox or dropdown controls is it possible to define values via URL?

    Can we do this with an external source such as a database?

     



    This is a re-post of a comment on Prepopulating Fields to Your Jotform via URL Parameters

  • Profile Image
    arthurprc
    Answered on January 05, 2019 at 05:15 PM

    The easiest way to prepopulate checkbox and dropdown values via URL is using the PrePopulate Fields app.

    https://prepopulate.jotform.io/

    I've recorded an example video:

    1546726519checkdrop.gif

  • Profile Image
    uniqueaid
    Answered on January 05, 2019 at 05:38 PM

    Arthur,

    I've done this already. I'm not asking to select predefined checkbox/dropdown values via URL but rather define values for Dropdown or check box via URL. In other words, if checkbox does not have any values defined I want to pass them via URL. Is it possible?

  • Profile Image
    arthurprc
    Answered on January 05, 2019 at 07:01 PM

    It would not be possible to pass values to the checkbox or drop-down via URL without loading the page. 

    As I show on my previous reply, it is possible to generate a prepopulated link, you can also do interesting things like pass values from one form to another by arranging a prepopulated URL on the "Thank you" page:

    How-to-Automatically-Pass-Form-Data-to-Another-Form

  • Profile Image
    TropForms
    Answered on January 14, 2019 at 11:44 AM

    I have the same doubt as uniqueaid. It would be interesting to create more options to drop-downs via URL or an external source, such a SQL database or so. Would that be possible?

  • Profile Image
    Kevin_G
    Answered on January 14, 2019 at 12:55 PM

    Unfortunately, it's not possible to load data from a database or external source as you request. We can open a feature request for this if you want, although we cannot provide an ETA, we would keep you updated via this thread. 

    Let us know if you would like the feature request to be opened. 

  • Profile Image
    TropForms
    Answered on January 18, 2019 at 08:15 PM

    Hello Kevin_G, tks for your reply!


    Sure I do, it would be very interesting to do that. I'll be at your disposal to test a beta version or give more ideas about this feature.

    Basically, my idea is to create a system that dialogues with multiple forms answers, so we can empower my supplier network with online forms (!and less paper).


    Regards, André!

  • Profile Image
    Kevin_G
    Answered on January 18, 2019 at 11:15 PM

    Thanks for the details, I have now forwarded this thread to our second level as feature request, please note that we cannot provide an ETA or ensure this feature will be worked, but we will keep you updated via this thread. 

    Also, in the meantime, you may develop your own code to pre-fill the data, you may get the form's source code to implement it, this guide will help you doing so: https://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form 

    Thanks.