I need to fetch json data from an external api call and I need to populate my form's initial values from the values received in the json

  • Profile Image
    Ibrahim_Muhammad
    Asked on February 11, 2021 at 12:36 PM

    I need to fetch json data from an external api call and I need to populate my form's initial values from the values received in the json.

    So my fetch/api call via http needs to made before the form loads up and I need some way to populate the form fields with some of the values that are returned.

    How would I do that?

    Also is it possible for us to call a jotform form with parameters in which we initialize the form values?


  • Profile Image
    jonathan
    Answered on February 11, 2021 at 04:09 PM

    It is possible to prepopulate the fields using URL parameters. By this method, you can prepopulate the fields coming from an API. You can check out this user guide on :

    Prepopulating Fields to Your Jotform via URL Parameters

    Let us know if you need further assistance.