How to make form result record the...

User 2633529 Photo


Registered User
3 posts

Eric,
Thanks so much for the help on capturing the URLs in the forms. I have used it successfully on a popup form I created, however I have tried again on a different form that sits in the footer of my page and it is not grabbing the appropriate URL. This time is seems to be using the coffeecup URL that my form is hosted on - is this because it's in an iframe and not set up to be a popup form? Any help on this would be greatly appreciated!

Sarah Masters
User 187934 Photo


Senior Advisor
20,193 posts

link?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2633529 Photo


Registered User
3 posts

Eric,
Here it is: http://yoeqt.ghrmn.servertrust.com/category-s/1820.htm

Thanks for looking into this for me, I appreciate it.

Sarah
User 187934 Photo


Senior Advisor
20,193 posts

This should work.:) This will return the full url of the page the script for the form is on even if the form is on S-Drive. So if the form is embedded on a different host that's the url that you will see.:cool:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> <script type="text/javascript">$(document).ready(function() {
var referrer = parent.document.referrer;
$("#item2").hide();
$("#item2_text_1").val(referrer);
})</script>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2633529 Photo


Registered User
3 posts

:D Thanks Eric, that worked! I'm new to jquery, so I really appreciate the help on this! God bless!

Sarah

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.