Pre-fill form using buyer's existing information?

  • Profile Image
    Vishal Bhatnagar
    Asked on August 31, 2015 at 09:31 AM
    On our platform, their are a lot of Repeat Buyer who place inquiry from different forms in an average interval Gap of 2-3 days. So in these cases, we store buyer's basic information in cookies and whenever the buyer returns on any form on our portal (www.indiamart.com & it's sub domains like trade.indiamart.com, dir.indiamart.com etc ...) we show the inquiry form PRE-Filled + buyer's information. So please do let us know if the above UX would be possible or not and if we host your forms on our domain then will cookies be supported or not ?
  • Profile Image
    Charlie
    Answered on August 31, 2015 at 09:46 AM

    If you want to pre-fill the forms, I have a few workaround in mind.

    Currently, you cannot connect your database to JotForm, BUT you can easily get and send information to your database after the form is submitted. Here are the workarounds I have in mind.

    1. Your form can easily send the submission data via POST using PHP script and store it in your MySQL database, here's a guide on that: https://www.jotform.com/help/126-How-to-send-Submissions-to-Your-MySQL-Database-Using-PHP. From your database, you can easily fetch the data to prefill the form when an existing user is doing the order. Or you can easily integrate WebHook to send HTTP post, here's a guide: https://www.jotform.com/help/245-How-to-Setup-Webhook-with-JotForm 

     

    2. You can also easily fetch the customers data using API, here's our API document that you can refer to: http://api.jotform.com/ 

     

    I hope that helps.