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.
Get Referrer widget not workingAsked by naswgr on March 20, 2014 at 03:30 PM
Hello. First - your products have saved my sanity - so thank you! However, I am having *trouble* with the GET Referrer widget. I've downloaded the source code to my website. When I use the form from the HTML page that was generated with my CSS and JS documents the widget returns the URL beautifully. When I copy that same code into another webpage, style it accordingly - the widget no longer works. It appears that I've linked all of the scripts properly, my form code is pretty much cut and copied. I cannot figure out why it works in one HTML page and not the other. I'm sure it's something obvious but I'm such a novice I can't figure it out.
Any assistance you can provide would be greatly appreciated!
I would suggest to retake your form source code, this time by using the provided source code when you select source code on the embed options. See if this helps.
I believed this was caused by script conflict which makes the referrer widget to malfunction. Looking at the embedded source code alone, you can already tell that the referrer widget is not working since it does not populate the referrer hidden field.
Let us know if the issue persists so we can assist you further.
I did grab the code again from the source instead of the HTML form on the download. This did provide me with the embeded JS files that were missing. My secondary issue was that I was moving the script tags to the head with my other called scripts. Once I left them in the body the widget works great. Thank you sooooo much for your help!
I am sorry, it is not clear if all is good or you still have issue?
From what I understand, what you did was, position the form script codes above the other existing scripts in the page head of the webpage. Did everything work as intended?
I'm glad to hear it! Let us know if we can be of more assistance.