How to make form result record the...

User 2280437 Photo


Registered User
4 posts

Hello,

In the previous Form Builder software, the email results would state the URL of the page containing the form which the user had filled out. It would say for example "...Here is the information submitted to [www.example.com/example] from 12.345.6.789 on Wednesday, May 15th, 2013 at 7:17 pm..."

With the new Form Builder software, the form results don't state which page/URL the user was on when they filled out the form. Is there any way to make the results provide this information?

I would like to create one single form and put it on many pages of my website, but I need to know which form the user has filled out by the page they were on.

Sorry if this is an obvious question, any help would be greatly appreciated

Thanks,
Luke
User 187934 Photo


Senior Advisor
20,190 posts

Take a look at this thread.
http://www.coffeecup.com/forums/web-for … d-to-form/
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 38401 Photo


Senior Advisor
10,951 posts

You can do this same as in the old form builder by using a hidden field also rather than all the hassle with extra coding.

Go to the Form Options tab on the right side and at the bottom of that tab area is a field called Hidden Fields.
Click the + sign under the box to add a new hidden field.
Give it a name (Sitename or something similar in your case)
Give it a value (the actual site URL in your case).

That's it, that field will be reported with the form reply you get and you'll always know what you want to know about whatever it is you need a hidden field for :) Basically the equivalent of what Magazines to to know what publication their advertising is working from :)


User 2280437 Photo


Registered User
4 posts

Thanks for the reply Jo Ann. Unfortunately this solution wouldn’t work for me because I wanted to create a single form to go in a template, and then all the child pages to display that form. I have several hundred pages that I need the form to be on, so it really isn’t an option to create a form for every page and add a hidden field to each one, but thanks anyway.

Eric, thanks also for posting that, I had tried searching the forums prior to posting but I didn’t come across that. I’ve tried the solutions there but they require knowledge of coding which is well beyond my ability.

I’ll have to just use the old software for this, unless there is another workaround.

Thanks anyway for your help

Luke
User 38401 Photo


Senior Advisor
10,951 posts

Hmm, I understand completely that it would be a bit daunting in thinking about it, but....

Keep in mind you don't really have to make a "new" form for each one, just save the current form in a new name for each one and alter only that information that is needed for that hidden field. Just rename each form to a separate name for each page (call it something similar to the page it's going on even to help know which is which)

Insert them on each page as you'd have to do anyways, and you're done. Seems daunting, but it's a lot easier than it sounds. Just a thought :) Good luck how ever you end up doing it though!
User 1948478 Photo


Senior Advisor
1,850 posts

LW,

If you Google return current URL , or similar, you will get a lot of suggested ways of doing what you are looking for. May be worth looking into some of those! ;)
User 2280437 Photo


Registered User
4 posts

Thanks Jo Ann, if I can’t come up with anything else I think that will be my only option. I’m just a bit hesitant to do that though because if I ever want to change the content of the form or position of the form on the pages in future, I would need to re-create the form, then re-save it hundreds of times and insert it into every single page etc. It would be so much easier if I could just create or update one form for the whole site and let the template do all the work

Thanks for the suggestion Per, I’m having a look at some of these forums now and they seem promising. Can I just confirm – if I’m trying to add a hidden field into the code of a form I have made in Web Form Builder, would I insert this into the html output file?
User 187934 Photo


Senior Advisor
20,190 posts

******Capture the url of your forms and submit it.******
1. Make your form and place a text field in it for the url and Label it Referer and name it referer.
2.Preview your form in the form builder then right click and view source code.
3. Scroll down the source code until you find the Referer label. Look above this and you should see something like this.
<div class="fb-item fb-100-item-column" id="item2" style="opacity: 1;"> Make a note of the id name id="item2" Yours will probably be different.
4. Now look below the Referer label and you should see something like this.
<input name="referer" id="item2_text_1" type="text" maxlength="254" placeholder=""
autocomplete="off" data-hint="" /> make a note of the id name id="item2_text_1" Yours will probably be different.
5. Now go back to the form builder and place a HTML element at the top and paste the code below into it.
<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 = document.referrer;
$("#item2").hide();
$("#item2_text_1").val(referrer);
})</script>

Now adjust the #item2 and the #item2_text_1 to the name of your id's that you noted earlier.
Publish and test.
Enjoy!
Thanks JQuery.:cool:
Here's my working example.
Referer submit
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 2280437 Photo


Registered User
4 posts

Hi Eric, that solution worked perfectly for me. Thanks so much for working this out and explaining it in such a simple way!
Regards
Luke
User 464893 Photo


Ambassador
1,611 posts

Impressive Eric, Thanks for that, another snip saved
The Guy from OZ



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.