What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Capturing Variables through the redirect URL to my thank you page which has a tracking code

    Asked by dcol on February 18, 2014 at 09:12 PM

    This is the instruction from Clix Galore

     

    Step 8) Please find attached some Javascript code which can be placed into your Auto Return URL page after the <BODY> tag. 

     

    <!--Begin clixGalore Code -->

     

    <script language="javascript">

    var arrParams = location.search.split("?")[1].split("&");

    var SV   = '';

    var OID  = '';

    var temp = '';

     

     

    if(location.search.indexOf("?")!=-1) 

    {

      if (arrParams)   

      {

        for (i=0;i<arrParams.length;i++) 

        {

          var param=arrParams[i].split("=");

          temp = param[0];

     

          if(temp.toLowerCase()=="amt")

          {

             SV = param[1]

          }

          if(temp.toLowerCase()=="tx")

          {

             OID = param[1]

          }

        }

      }

    }

     

    document.write ('<img src="https://www.clixGalore.com/AdvTransaction.aspx?AdID=15070&SV=' + SV + '&OID=' + OID + '" height="0" width="0" border="0">');

     

    </script>

    <!--End clixGalore Code -->

    tracking transaction height length aspx find
  • Profile Image

    Answered by Cesar on February 18, 2014 at 10:58 PM

    You could add this code to a webapge of your choosing and make the form direct to that URL by setting up Custom URL option on the Thank You Page Wizard:

    On the Setup & Embed section on the top toolbar of the Form Builder, Click on the Thank You icon, once the Thank you Page Wizard is open, select the Custom URL option. 

    https://shots.jotform.com/cesar/screens/customurl2.jpg

    Do let us know if you need further support. Thank you.

  • Profile Image

    Answered by dcol on February 22, 2014 at 12:10 AM
    the sale value and order ID variables posted back from Paypal be passed to
    the custom url?
    ...
  • Profile Image
    JotForm Support

    Answered by NeilVicente on February 22, 2014 at 01:44 AM

    @dcol

    Paypal sends us back order details in the background via an IPN (Instant Payment Notification).

    You may have this IPN ping-ed back to your URL of choice by adding it to the IPN Relay URL list.

    Right-click on your payment field, click Show Properties to see this screen.

     

    Do note, however, that this is a backend notification, and will require a backend scripting language such as PHP to process.

  • Profile Image

    Answered by dcol on February 24, 2014 at 08:10 AM

    Hello
    Can the 2 of you communicate directly on this
    Thank you
    Dance well,
    www.DanceCoachOnLine.com
    admin@dancecoachonline.com
    1-855-630-8111
    647-984-0656
    Twitter.com/dancecoachol
    Facebook.com/dancecoachonline
    ...
  • Profile Image
    JotForm Support

    Answered by TitusN on February 24, 2014 at 09:06 AM

    My two colleages have recieved your message and will collaborate when available.

    Just to clarify:

    1. You want to place a tracking script on the thank you page of your form?

    2. Your form is integrated with paypal

    3. You want to pass some values (sale value and order ID) from paypal/your form into the page with the tracking code

    Right? Please confirm

    I'll have to point out that you cannot add the script onto your form's thank you page. This is because scripts cause a security compromise, so they will be stripped when placed on your form's thank you page. - and that is why Cesar reccomends that you use a page on your website or a different location, and instruct your form to redirect there after the payment is complete.

    We will update this thread after collaboration.

  • Profile Image

    Answered by dcol on February 24, 2014 at 12:10 PM

    Could you please respond to jotform
    Dance well,
    www.DanceCoachOnLine.com
    admin@dancecoachonline.com
    1-855-630-8111
    647-984-0656
    Twitter.com/dancecoachol
    Facebook.com/dancecoachonline
    ...
  • Profile Image
    JotForm Support

    Answered by TitusN on February 24, 2014 at 12:56 PM

    Hello Dance Well,

    I'm not sure if your last message was directed to us - I'll presume it was.

    Still considering a workaround, however some more information would help to come up with a practical response.

    We look forward to your confirmation on the three questions I asked on my previous response: 

    Whether -

    1. You want to place a tracking script on the thank you page of your form?

    2. Your form is integrated with paypal

    3. You want to pass some values (sale value and order ID) from paypal/your form into the page with the tracking code

     

    We would like to find a solution that works for you, or at least reccomend one, that information will help us respond effectively.

    Thank you for your patience.

  • Profile Image

    Answered by dcol on February 24, 2014 at 01:30 PM
    Thank you
    Could you please communicate directly with Graham Fayera. Copied on this email
    Dance well,
    www.DanceCoachOnLine.com
    admin@dancecoachonline.com
    1-855-630-8111
    647-984-0656
    Twitter.com/dancecoachol
    Facebook.com/dancecoachonline
    ...
  • Profile Image

    Answered by dcol on February 25, 2014 at 01:10 PM
    Hello
    Just a reminder re the questions from Graham
    Thanks
    Dance well,
    www.DanceCoachOnLine.com
    admin@dancecoachonline.com
    1-855-630-8111
    647-984-0656
    Twitter.com/dancecoachol
    Facebook.com/dancecoachonline
    ...
  • Profile Image

    Answered by dcol on March 03, 2014 at 04:50 PM
    1. Yes I would like to put a tracking script on the tank you page of the
    form
    2. Yes the form is integrated with pay pal
    3. We would need to pass values to a cookie based system not server to
    server. a page with the cookie based system must be loaded to a customers
    browser.Can you forward the sale amount and order ID on a querystring? If
    so we can use code to reference these querystring values and write out
    the tracking pixel
    On Mon, Feb 24, 2014 at 12:56 PM, JotForm Support Forum <
    jotform@jotmails.com> wrote:
    ...
  • Profile Image
    JotForm Support

    Answered by TitusN on March 03, 2014 at 05:11 PM

    Hello,

    Thank you for your feedback.

    I would therefore reccomend the following:

    1. Use the re-direct URL to instruct the form to return to a customized thank you page that you have set up for tracking.

    2. To implement a querystring, use this guide to generate the requisite URL that will collect the variable when the URL is placed in the  redirect Thank you page settings.

    We would like to help, so if you should create your default thank you page with the tracking script, we can help create the prepopulation URL which will pass values to your thank you page.

    To help, we would need to know the following:

    1. The custom Thank you page URL

    2. The name of the fields on the form you want to pass values using a querystring

    3. The name of the form

    While the Paypal field may not be able to pass values to the string for the thank you page, we can still offer a workaround for passing the total purhcased value to the thank you page.

    Let us know.

  • Profile Image

    Answered by dcol on March 04, 2014 at 02:00 PM
    Thank you. We have created a a thank you page at
    http://www.cbsecurestorage.com/DSConfirmation.html
    The URL for jotform to redirect to would need to be:
    http://www.cbsecurestorage.com/DSConfirmation.html?tx=ID>&amt=
    For example
    http://www.cbsecurestorage.com/DSConfirmation.html?tx=ABCD1234&amt=1.99
    Regards
    On Mon, Mar 3, 2014 at 5:11 PM, JotForm Support Forum
    wrote:
    ...
  • Profile Image

    Answered by EliezerN on March 04, 2014 at 03:53 PM

    @dcol

    Thanks for getting back to us with the information needed.

    Your message has been forwarded to may colleague. Once he has completed the workaround for you, he will back to you.

    If any update is available, you will be updated here.

    Thanks

  • Profile Image

    Answered by dcol on March 04, 2014 at 05:40 PM

    Thank you
    ...
  • Profile Image

    Answered by dcol on March 07, 2014 at 02:10 PM
    Hi there
    Just checking to see if there has been any update to share
    Thank you
    www.DanceCoachOnLine.com
    admin@dancecoachonline.com
    1-855-630-8111
    647-984-0656
    Twitter.com/dancecoachol
    Facebook.com/dancecoachonline
    ...
  • Profile Image
    JotForm Support

    Answered by TitusN on March 09, 2014 at 05:59 AM

    Hello,

    Thank you for your patience. It is well appreciated.

    It took quite a bit of work, but It is possible to send a querystring to your thank You page with the tracking ID variable and the Total amount.

    The reason why we need to use the source code is so that we can apply Javascript to capture and send the total to the thank you page after the paypal payment is complete and redirected.

    I have prepared a test form:

    https://shots.jotform.com/titus/Testform4.html

    Use this paypal account to test the form:

    jotformtestingaccount@jotform.com

    tryitout2014

    The paypal field on the form is in test mode, so a redirect is not automated after the payment is complete, you will need to click on the redirect link to get back to your custom thank you page:

    Here's how the URL will look like:

    I believe the URL and querystring syntax is correct, right?

    Now, to get this solution as your own, do the following:

    1. Clone this form: http://form.jotformpro.com/form/40634218633956 - use this guide to learn how to clone a form

    2. Integrate the paypal field to your paypal account - then make any dedign changes that you deem neccessary - please Ignore the 'Total' field at the bottom of the form (illustrated below) - it is only used to deliver the total variable to the querystring URL

    3. Respond back with the cloned form URL/link so that I can quickly customize the source code to connect to your cloned copy, then I will share the HTML on pastebin.com so that you can implement it.

    Sound OK?

    Let us know.

  • Profile Image

    Answered by dcol on March 09, 2014 at 09:40 AM
    Thank you!!
    We will try this and let you know
    Thanks again
    www.DanceCoachOnLine.com
    admin@dancecoachonline.com
    1-855-630-8111
    647-984-0656
    Twitter.com/dancecoachol
    Facebook.com/dancecoachonline
    ...
  • Profile Image

    Answered by dcol on March 10, 2014 at 09:20 PM
    Thank you. I have 2 versions of the same form (one for mobile and the other
    desktop)
    Is it possible to customize the source code for both?
    http://form.jotform.ca/form/40687256303253
    http://form.jotform.ca/form/40687700046251
    On Sun, Mar 9, 2014 at 5:59 AM, JotForm Support Forum
    wrote:
    ...
  • Profile Image

    Answered by dcol on March 12, 2014 at 04:50 PM
    Hello
    You have said
    3. Respond back with the cloned form URL/link so that I can quickly
    customize the source code to connect to your cloned copy, then I will share
    the HTML on pastebin.com so that you can implement it.
    Just checking on whether this is OK now and if so. the logon to and next
    steps re the HTML on pastebin.com
    Thanks
    ...
  • Profile Image
    JotForm Support

    Answered by TitusN on March 12, 2014 at 04:58 PM

    Hello,

    I will provide the HTML code for both of your forms. No login will be required - I will depreciate the unlisted links in pastebin.com once you've collected your copy.

    I will however need your permission to make some slight changes on the two forms you indicated-

    http://form.jotform.ca/form/40687256303253
    http://form.jotform.ca/form/40687700046251

    I will be modifying some querystring php variables in the redirect URL.

    If this is Ok with you, please confirm.

    Thank you for your patience.

  • Profile Image

    Answered by dcol on March 12, 2014 at 05:10 PM
    Yes
    Go ahead. Please let me know when they are changes as they are on the website now so I will need to update the links
    Thanks very much
    www.DanceCoachOnLine.com
    admin@dancecoachonline.com
    1-855-630-8111
    647-984-0656
    Twitter.com/dancecoachol
    Facebook.com/dancecoachonline
    ...
  • Profile Image
    JotForm Support

    Answered by TitusN on March 12, 2014 at 05:15 PM

    Will do, and thank you for obliging to my request. 

    Where are the forms on the website?

    Please share the URL's - I need to consider all factors before completing the solution.

  • Profile Image

    Answered by dcol on March 12, 2014 at 05:50 PM
    This URL
    http://www.dancecoachonline.com/#!phone-request-on-line-coaching/c8p8
    Has this form http://form.jotform.ca/form/40687256303253
    This URL
    http://www.dancecoachonline.com/#!tablet-pc-request-on-line-coaching/cf96
    Has this form http://form.jotform.ca/form/40687700046251
    Thanks
    On Wed, Mar 12, 2014 at 5:15 PM, JotForm Support Forum ...
  • Profile Image
    JotForm Support

    Answered by TitusN on March 12, 2014 at 06:06 PM

    Thanks!

    Will update as soon as possible.

  • Profile Image

    Answered by dcol on March 12, 2014 at 06:50 PM
    Thanks very much!
    www.DanceCoachOnLine.com
    admin@dancecoachonline.com
    1-855-630-8111
    647-984-0656
    Twitter.com/dancecoachol
    Facebook.com/dancecoachonline
    ...
  • Profile Image
    JotForm Support

    Answered by TitusN on March 13, 2014 at 06:48 AM

    Hello,

    Thank you for waiting.

    Looks like you did most of the ground-work - the php variables you put in were right on the money. :-)

    I created the two forms and tested them - they should work fine - when you get live payements - you can advice - but I'm pretty positive after a lot of double checking.

    So, you will have to use the form's source code - I like the setup on the website - It will make implementation real easy:

    For form http://www.jotform.ca/form/40687256303253,

    Use the following source code: http://pastebin.com/pGypuedK,  and replace with all the HTML found on this page - http://www.dancecoachonline.com.usrfiles.com/html/dbbb4c_8426c6ec44f0be56ededb2153f478eeb.html

    For form http://www.jotform.ca/form/40687700046251

    Use the following source code http://pastebin.com/KzyATbge

    Replace it with all the HTML code found on this page: http://www.dancecoachonline.com.usrfiles.com/html/dbbb4c_2449f3d76b3904a07043607c1cc3b6e0.html

    When you do the replacements on the pages I reccomended - the parent page will load the updates through their respective Iframes- my reccomendation is not exlusive -  you are free to implement the solution in any other standard way.

    Looks like its a wix website? I certainly hope you are able to edit raw HTMl files with a text editor from your webhost..

    Let us know if that helps.

    The pastebin links will depreciate in 7 days - if you are done sooner - I can take them down - but they are unlisted from public view.

  • Profile Image

    Answered by dcol on March 13, 2014 at 09:00 AM
    Hello
    Thanks you very much !! I have made the replacements.
    One questions. If I need to update the forms, how can I do this and
    maintain the tracking?
    Thanks again
    On Thu, Mar 13, 2014 at 6:48 AM, JotForm Support Forum ...
  • Profile Image
    JotForm Support

    Answered by TitusN on March 13, 2014 at 09:58 AM

    I'm afraid you would have to re-create the source code and add the script that collects the payment total each time.

    <script type="text/javascript">
         function getTotal() {
         var formtotal = document.getElementById("payment_total").innerHTML;
         document.getElementById("input_60").value = formtotal;
       }
    </script>

    But let us know when you do, and we can assist - studying the source code will also give you some headers as to how you can implement the solution on another form.

  • Profile Image

    Answered by dcol on March 13, 2014 at 10:50 AM
    Ok
    Thank you very much
    www.DanceCoachOnLine.com
    admin@dancecoachonline.com
    1-855-630-8111
    647-984-0656
    Twitter.com/dancecoachol
    Facebook.com/dancecoachonline
    ...
  • Profile Image

    Answered by dcol on March 18, 2014 at 10:30 AM
    Hello
    The new code would not let people purchase. I have put the old one back. If I add the code you highlighted below to the form code will the tracking work or are there other steps
    www.DanceCoachOnLine.com
    admin@dancecoachonline.com
    1-855-630-8111
    647-984-0656
    Twitter.com/dancecoachol
    Facebook.com/dancecoachonline
    ...
  • Profile Image

    Answered by EliezerN on March 18, 2014 at 12:37 PM

    @dcol

    Thanks for the update about using the custom script. My colleague Titus is not online right now, but your message has been forwarded to him.

    He will reply once he is available.

    Thanks

  • Profile Image
    JotForm Support

    Answered by TitusN on March 18, 2014 at 01:29 PM

    I'm guessing you wanted to apply the script to a different form or a modified one.

    Please share "The New Code" with us so that we can take a look and fix the problem - we are here to assist. 

    I would advice that we open a new suppot thread for this, and reference this support thread so that we can assist better.

  • Profile Image

    Answered by dcol on March 18, 2014 at 04:50 PM
    Hi there
    Unfortunately the problem is that the forms with the new code for tracking,
    do not work properly. It will not take input and will not advance from the
    first page. as well all the required validation is gone.
    On Thu, Mar 13, 2014 at 6:48 AM, JotForm Support Forum ...
  • Profile Image
    JotForm Support

    Answered by TitusN on March 18, 2014 at 05:13 PM

    Could you please  set up a test page  with the new code so that we can take a look?

    Thanks