Hi
I wonder is there a way to send the URL of the page referrer where the form was submitted. I have an enquiry form loaded in a module position on 100 K2 items. I would like to get the URL that the user was on when they send an enquiry so I can match the form with the product they are enquiring about. Is there a way to do this? Thanks.
I wonder is there a way to send the URL of the page referrer where the form was submitted. I have an enquiry form loaded in a module position on 100 K2 items. I would like to get the URL that the user was on when they send an enquiry so I can match the form with the product they are enquiring about. Is there a way to do this? Thanks.
Hi andrewau,
Please see this FAQ. It may well be that K2 has some other clues in the page layout that you could pick up with JavaScript.
Bob
Please see this FAQ. It may well be that K2 has some other clues in the page layout that you could pick up with JavaScript.
Bob
Hi Bob,
Thanks for that, I have followed the FAQ however the URL is not being sent through in the email. I just get a blank for the custom code. Wonder if there is something I am missing?
Thanks
Thanks for that, I have followed the FAQ however the URL is not being sent through in the email. I just get a blank for the custom code. Wonder if there is something I am missing?
Thanks
Hi andrewau,
Please drag a Debugger action into the On Submit event, then submit the form and copy and paste the debug results here - including the 'dummy emails'.
Bob
Please drag a Debugger action into the On Submit event, then submit the form and copy and paste the debug results here - including the 'dummy emails'.
Bob
Hi Bob,
Ok here it is:
Ok here it is:
Data Array
Array
(
[option] => com_chronoforms5
[chronoform] => enquiry
[event] => submit
[name] => Andrew
[text6] => 99998888
[email] => test@example.com
[industry] => 0
[message] => Testing form with URL
[page_url] =>
[submit5] => Submit
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
[1] => Array
(
[Email] => Array
(
[0] => An email with the details below was sent successfully:
[1] => To:andrew@example.com
[2] => Subject:Marlin Product Enquiry
[3] => From name:Test Site
[4] => From email:andrew@example.com
[5] => CC:
[6] => BCC:
[7] => Reply name:
[8] => Reply email:
[9] => Attachments:
[10] => Array
(
)
[11] => Body:
<table>
<tr><td>Custom Code</td><td></td></tr>
<tr><td>Name</td><td>Andrew</td></tr>
<tr><td>Phone</td><td>99998888</td></tr>
<tr><td>Email</td><td>test@example.com</td></tr>
<tr><td>Industry</td><td>0</td></tr>
<tr><td>Custom Code</td><td></td></tr>
<tr><td>Enquiry</td><td>Testing form with URL</td></tr>
<tr><td>URL</td><td></td></tr>
</table><br /><br />
)
)
)
Hi andrewau,
So the page_url has no value when the form is submitted.
What do you have in the On Load / Designer parts of the form to get this?
Bob
So the page_url has no value when the form is submitted.
What do you have in the On Load / Designer parts of the form to get this?
Bob
Hi Bob,
In On load I just have HTML (Render Form). I can get you admin access if thats easier as well.
In On load I just have HTML (Render Form). I can get you admin access if thats easier as well.
Hi andrewau,
By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.
Bob
By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.
Bob
This topic is locked and no more replies can be posted.