How to pass affiliate ID on forms

  • Profile Image
    Asked on October 29, 2013 at 08:06 AM


    I am using jotform as an order form because it is more interesting for my type of product compared to different e-commerce platforms.

    I would like to work with affiliates for my products and add my forms to their websites. Is it possible to create a unique link (with their affiliate ID) to the forms that I have created? I want to track if an order came from a certain affiliate.

    The alternative is that i create 6 forms (I have 6 products) unique for every affiliate. But if I do this right and have 100 affiliates, this means 600 forms. So this is not really interesting.

    Thank you so much for your help


    Christophe Slegers

  • Profile Image
    Answered on October 29, 2013 at 10:02 AM

    Hello, yes this is possible to be achieved on a single form that you can distribute on your affiliates.

    Let's take the form from your website as an example:

    First create a hidden field on your form and name it "affiliate ID" as is.


    Set the Affiliate ID on your notification as well


    Now you can distribute the form using the form URL by adding "?affiliateId= You members ID"


    This is a sample notification from the sample form I made


    If you need further help, please do not hesitate to ask. Thank you

  • Profile Image
    Answered on October 29, 2013 at 10:57 AM
    But if i understand correctly, this means that i have to create this form
    for every affiliate. Or am i mistaken?
    thanks for the swift respons
    Kind regards
    Christophe slegers
  • Profile Image
    Answered on October 29, 2013 at 11:13 AM

    As from what I can understand on how your website performs, you only need to modify your product forms and add a hidden textbox for each form. Then you can simply reuse those forms to all of your affiliate members. They will use this single form per product.

    To further clarify that, Take this as an example scenario:

    The product "Create your custom katana in 1095 carbon steel" page contains this form which has a title of "BushiSwords: order 1095 monosteel katana"

    After doing the modification on this form by adding the hidden field and modifying the notification as stated on my previous post, you can now reuse this form for your affiliate members and distribute its embed codes for their website for them to immediately use:

    You can get their normal embed codes by reading this guide Adding a Form to a Web Page

    <script type="text/javascript" src="//"></script>

    You can also use the iFrame embed method for your affiliates who have trouble integrating them on their webpage.

    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="//" frameborder="0" style="width:100%; height:32115px; border:none;" scrolling="no"></iframe>
    <script type="text/javascript">window.handleIFrameMessage = function(e) {var args =":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight" = args[1] + "px";break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>

    As you can see, you can just distribute either one of the embed codes for your affiliates to use and just change their ID accordingly. No need to create each form for each affiliate. They will adjust that on your embed codes using their Affiliate ID.

  • Profile Image
    Answered on December 17, 2015 at 06:02 PM

    Is the Affiliate ID ramdom generated?