How Can I Differentiate When I Use the Same Form on Different Sites?
-
nllemireAsked on April 02, 2011 at 02:48 PM
I want to use the same form on different sites but also be able to tell which site the form came from when a submission is made. I'm using the iFrame code as it is compatible with all browsers and the css of my sites. The same form will be used on over 30 pages. Is there some way besides creating a duplicate form that is renamed for each site or page to do this?
-
NeilVicenteAnswered on April 03, 2011 at 01:43 AM
Hi,
This can be made possible by using a hidden input box and prepopulating it using URL parameters.
The first thing you need to do is insert a Hidden Box into your form. You can find it under the Power Tools section of the Form Builder.
Name that box with something that's easy to remember. Let's say, "website".
Get your iframe embed code.
Append this piece of code: "?website=professionalsite" at the end of the URL so it becomes
Replace professionalsite with any identifier, i.e. your website's name.
Embed your form.
As an example, filling out this form with the url parameters ?website= professionalsite sends me this notification email:
I hope you find this information useful. Let me know if you have other questions.
Regards,
Neil
-
nllemireAnswered on April 03, 2011 at 02:42 PM
Thank you very much, Neil. That works like a charm!
-
NeilVicenteAnswered on April 04, 2011 at 08:50 AM
You're very much welcome. Feel free to post again if you have other questions.
Neil
-
nllemireAnswered on April 04, 2011 at 12:45 PM
Hi Neil,
I do have another question regarding this same subject which is...
When the form is submitted, the information from the hidden field shows up at the very bottom of the results. Is there some way to get the information at the top or, even better in the subject line?
Leigh Ann
-
NeilVicenteAnswered on April 04, 2011 at 07:16 PM
Hi,
Yes. You can move the information at the top or even the subject line by configuring your notification email.
After you click on Notification 1, for example, the Compose Email window will appear. Watch this short screencast for instructions on how to insert identifiers.
http://www.screencast.com/t/QN3zC9AjEf
Basically, field identifiers can be place anywhere in the notification email.
Neil
-
nllemireAnswered on April 05, 2011 at 03:28 PM
Thank you very much, Neil - not only is it simple to do but it also works like a charm! Yay!
-
NeilVicenteAnswered on April 06, 2011 at 12:00 AM
Glad to be of help. Thank you for using Jotform.
Neil -
nllemireAnswered on April 06, 2011 at 02:16 AM
Oooops - perhaps I spoke too soon. Entering the info in the email subject line is only good for one time. I want to use the same form on multiple sites and pages - so this is not a solution. Is there some way to either change the subject line for each different page or to move the hidden field so that it shows at the top of the form?
-
NeilVicenteAnswered on April 06, 2011 at 02:28 AM
Hi,
Yes that is also possible by inserting another hidden box in your form dedicated for the subject line. Insert the identifier for that field in your subject line (in the Compose Email wizard). Again, append the url parameter for that field into your iframe embed code.
Let's say the identifier for the field is "subj", append this url parameter at the end of the src url
"?website=google&subj=Submissions from one of our site"
so it becomes
<iframe allowtransparency="true" src="http://form.jotform.com/form/10921953299?website=google&subj=Submissions from one of our site"
Do remember that parameters are separated by an ampersand &.
Neil
-
nllemireAnswered on April 06, 2011 at 05:08 PM
Neil! Words really don't express my gratitude - I did as you said and, by golly - I have completely original and beautiful submissions arriving - perfectly! It's great. Thank you very much for your help.
Leigh Ann
-
sajegoAnswered on April 06, 2011 at 10:32 PM
Can the auto populate be applied to the lightbox or feedback scripts?
-
NeilVicenteAnswered on April 08, 2011 at 08:01 AM
@sajego,
No. Url population using query strings can only be applied to HTML forms. Lightbox forms are a special case - although the form itself is html, the method of loading the form is different in a sense that it is called by a Javascript function and not by a url request.
I hope you understand what I'm trying to say.
Regards,
Neil -
mannagodAnswered on May 14, 2011 at 03:20 PMHi there.
I need to reference the form from multiple places on the same page. Is there a way to do this?
Ted
-
NeilVicenteAnswered on May 15, 2011 at 05:17 AM
Hey Ted,
Hi I have already answered your question in the other thread that you have created. Let me know how my solution worked for you. Thank you for using Jotform.
Neil -
madmax1930Answered on May 20, 2011 at 03:22 PM
What if the form is used on a Facebook fan page? Shall I follow this thread´s instructions or is there another procedure for FB?
-
NeilVicenteAnswered on May 20, 2011 at 03:30 PM
@madmax1930
Do you still use FBML or the new methods (custom iframe app, tabpress app) for embedding to FB pages? FBML is now deprecated and receives little to no support from Facebook. You should defnitely use iframe apps to embed your forms.
If you're going to use tabpress, just follow the steps in this page as is. This solution should work just fine.
If you're going the custom iframe app route, you only need to insert the URL with the appended parameters in the app's url fields, for example:
http://www.jotform.com/form/10921953299?referrer=facebook
If you need more assistance, please let me know.
Neil -
rabelardoAnswered on May 25, 2011 at 10:31 AM
awesome solution. thanks !
-
MuhammadOrientAnswered on June 22, 2011 at 05:49 AM
can you help me to get on the
$_SERVER and ['HTTP_REFERER']
i want to the code argent how i can add it
I want to see from any page come the visitor -
MuhammadEidAnswered on June 22, 2011 at 09:37 AM
i maked you step by step but it not work and tell me sir how i can edit php code on hide field and access it on my mail thanks
-
NeilVicenteAnswered on June 23, 2011 at 12:29 AM
Hi,
I have answered your questions in your original post. Please let me know if the solutions I suggested worked for you.
Neil -
MamaRedAnswered on December 14, 2011 at 01:36 PM
I'm not quite sure I understand how to use the same form (URL) for multiple sites without having duplicated forms (although will say I love the CLONE feature...great job).
Say, for example, I want to invite people to speak for my teleseminar series and I create a form called Presenter Management Form.
I have a website with the URL: http://mamaredspeaks.com
and another with the URL: http://theselfishformula.com
Do I put the full URL of my site? where you have ?Google or do I put the name of the project or?
I guess what I'm missing is how the code knows which site.
If this explained or illustrated somewhere else, I would appreciate a link. Ya'll are da greatest! Shared JotForms with an uber developer friend of mine and he fell in love. It isn't often I hear him swear OR say he loves something that much...he immediately bought a 2 year subscription!
-
Mike_TAnswered on December 14, 2011 at 08:19 PM
Thank you very much for using our services.
You may use either the name of your project or your site to pre-populate the hidden box. Basically you can follow the next steps:
1. Add a hiden box to your form, "website" in example
2. Get the iFrame code:
3. Adjust the iFrame code, for example:
iframe allowtransparency="true" src="//form.jotform.com/form/10000000000"
is changed to
iframe allowtransparency="true" src="//form.jotform.com/form/10000000000?website=your_site_name"
4. Embed your form using adjusted iFrame code
5. Make sure that hidden box field is listed within your email notification(s), so you will receive the information about website in your notification emails.
If something is not clear, please let us know. We will be happy to help you!
-
reciproc8Answered on October 21, 2013 at 10:41 PM
I did this and it didn't work. I probably did something wrong...
What I want to have happen is the URL of the page the form is embedded on to be captured by the form so I can identify the source. Am I missing something or is this not what is being asked in this thread? How do we do this? I have tried the above method and it does nothing.
If the form is hosted on www.domain.com/page1/?id=fb_adThen I need the URL to show up in submissions / email notification. How do I do this please?
-
jeanettebmzAnswered on October 21, 2013 at 10:47 PM
@reciproc8
Please open a new thread and explain what you are trying to accomplish to and we will be more than glad to assist you
-
reciproc8Answered on October 21, 2013 at 11:01 PM
Got it figured out. And I know you guys would be more than glad to assist me because you guys KICK ASS!!