How to pass value from Main Form to Sub-Form

  • Profile Image
    keicykk
    Asked on September 25, 2017 at 05:59 AM

    Hello JotForm team,

    I am using a Main Form to show a payment selection (PayPal / Bank-in / COD). Once user selected Bank-in or COD, it shows another form. Can I pass the first selection (Bank-in or COD) to second form, which I can record the action.

    Please advice

    Justin Yuen


  • Profile Image
    liyam
    Answered on September 25, 2017 at 08:07 AM

    Hello,

    Yes, that would be possible by enabling the POST data setting on your form.

    Basically, by enabling POST data submission on your form, the information submitted from form 1 can be forwarded and pre-fill your 2nd form. You can either point your Thank you page to your 2nd form, or give a link to your thank you page with the pre-filled information from form 1 to form 2.

    The process found on this guide will give you a good idea how you can forward post data from one form to another: https://www.jotform.com/help/213-Send-Submission-Data-via-Post-Method-and-Thank-You-Settings

    Feel free to let us know if you have additional questions.