How can I make API request of the data filled in the form to receive a response back to the same form

  • Profile Image
    Zhassan
    Asked on October 20, 2020 at 07:52 PM

    Hi Jotform team,

    I am trying to add a feature in my forms that we are using for sign ups - want to confirm if it can work.

    The process works by taking the location address that customers fills on the form and making API request of that address to another service provider, it will return some field values that can be automatically filled up in the form. Is this something that can be done?

    Please, let me know as early as possible as this is something we are looking to implement urgently. Alternatively, please contact me on zhassan@diamond-energy.com for quick response.


    Thanks,

    Zohair


  • Profile Image
    Amin_N
    Answered on October 21, 2020 at 01:45 AM

    What you're after can be achieved as follows.

    1. Create two forms, embed one into the other using the iFrame widget.
    2. Add the address field to the embedded form, then follow this guide to get the values of the Address field POSTed to your API.
    3. Create a submission to the main form with the Address value using our API following the 'POST /form/{id}/submissions' section found here.

    I hope I have been of any help.