- eiermannAsked on December 01, 2016 at 02:58 AM
Is there a way the referrer widget recognises the actual domain the form was filled in from? Or is there a way to add a parameter to see that the form was actually filled in from villa-bali.com using an iframe linked to thingstodoinbali.com?
Looking forward to your reply!
- JotForm Supportashwin_dAnswered on December 01, 2016 at 03:53 AM
Yes it is possible to achieve your requirement by adding "Get Form Page URL" widget in your form. This widget will capture the parent page URL of the Form.
You may like to take a look at the following guide which should help you: https://www.jotform.com/help/287-Include-Referrer-in-form-within-IFRAME
Hope this helps.
Do get back to us if you have any questions.
- eiermannAnswered on December 01, 2016 at 04:23 AM
Awesome! Will try that asap!
- JotForm SupportNik_CAnswered on December 01, 2016 at 04:56 AM
Please do and let us know if it helps.
- JotForm Supportashwin_dAnswered on December 02, 2016 at 02:51 AM
I did check the screenshot you have shared and it seems the "Get Form Page URL" widget seems to work as expected. The form which you have embedded is webpage is actually being captured correctly. Please check the below screenshots:
Please note that "Get Form Page URL" captures the URL where the form is embedded.
Can you please let us know what is the issue you are having?
We will wait for your response.
- eiermannAnswered on December 02, 2016 at 04:11 AM
Oh I was expecting the Get Form Page URL can detect the URL where the iframe is. Is there a way to discover from what URL the iframe to my page was embedded?
- JotForm SupportNik_CAnswered on December 02, 2016 at 05:14 AM
Get Form Page URL will include the page URL of the form that is submitted and it will include the link in submission, for example like this:
So if the form is embedded somewhere, iframe or some other embed type, you can still use this widget to get the URL. Now, I"m not sure if you had something else in mind maybe?
- eiermannAnswered on December 07, 2016 at 04:10 AM
villa-bali.com loads thingstodoinbali.com/villa-balicom in an iframe. But how can I see that the submission was actually filled in from villa-bali.com?
- JotForm SupportoliviaAnswered on December 07, 2016 at 05:41 AM
It is seen that your form is actually embedded in thingstodoinbali.com/villa-balicom and you embedded thingstodoinbali.com/villa-balicom into villa-bali.com/en/activities, too. Therefore, when someone submits your form in villa-bali.com/en/activities, Get Form Page URL captures the thingstodoinbali.com/villa-balicom because of iFrame, not villa-bali.com/en/activities.
Unfortunately, JotForm has no such a feature. You can get only the form URL with Get Form Page URL Widget.
My suggestion is to embed your form into these two websites separately. This is the easiest way to get correct URL of the submitted form.
If you need any further assistance, please feel free to let us know.
- eiermannAnswered on December 07, 2016 at 11:05 PM
If it would capture the URL /villa-balicom that would be alright since we could see from there that it was filled in from villa-bali.com. Unfortunately the forms can't be filled in from this page. The user has to decide for one activity and then the URL won't be /villa-balicom anymore but (for example) /trekking/mount-batur-trekking. Any other idea how to add a parameter or something to the end of the URL like /trekking/mount-batur-trekking/?ref=villa-bali.com
- JotForm Supportashwin_dAnswered on December 08, 2016 at 12:35 AM
Yes is is possible to add parameter in the iFrame embed code to populate the value in a hidden field. Please take a look at the following guide which should help you with this workaround solution: https://www.jotform.com/help/84-How-to-Know-which-Page-or-Form-the-Submission-Came-From
Hope this helps.
Do try out and get back to us if you have any questions.