adding a referral program?

  • lcmcintosh
    Asked on August 16, 2019 at 9:30 AM

    Hi Jotform,

    Im interested in making a referral program on our website using either a tracked link or by adding a referral code section to our form. To make it easiest on the user I would prefer them not having to manually enter it, but our forms embedded. I assume this would prevent an auto-filling function?

    Can you suggest any options?

  • Girish JotForm Support
    Replied on August 16, 2019 at 9:46 AM

    To clarify, you want to create a referral program form and embed that on your website. Is that correct? You can embed the form using the iFrame code, which you can obtain from your form's Publish page: Getting-the-Form-iFrame-Code.

    Are you referring to this query? If not, it would be helpful, if you could explain your requirement so that we could assist you accordingly. 

  • lcmcintosh
    Replied on August 16, 2019 at 10:08 AM

    So after a bit more research id like to give users a referral link ie:
    http://example.com/?ref=cda4eee3898f8275ef78a733a47b1191

    then on the page we have the form embedded use a $ref = $_GET['ref']; to add it to the submission.

    Is this possible using the embedded form?

    What are some alternatives to achieving this without the user physically copying and pasting their code into the form?

  • lcmcintosh
    Replied on August 16, 2019 at 10:16 AM

    Maybe something like Get Form Page URL tool, But I don't know if it grabs the reference id and that's the important piece

     

  • lcmcintosh
    Replied on August 16, 2019 at 10:27 AM

    Get referrer widget will probably do the trick

  • Girish JotForm Support
    Replied on August 16, 2019 at 10:44 AM

    The Get Form Page URL widget detects the web page where you embedded the form and provides the page URL each time the form is submitted.

    Whereas, the Get Referrer widget basically shows the address of the web page that a person was on, right before they landed on your page.

    I believe this is what you were looking for, right?


  • lcmcintosh
    Replied on August 16, 2019 at 10:54 AM

    Yes Getform page url is giving me the results I need thank you