What would be the best way to add the URL and/or page title the user is on when the form is filled out and how do I get this value in the e-mail that is being send?
I read something about {url:_self}?
And also {page:title}?
Could I just use that in the e-mail body to show the URL? Or do I need to create a hidden field and use these tags for the value of the hidden field?
I also read:
https://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2631-how-can-i-get-information-about-the-current-page
But I am not sure how to implement this in CF6... Or is there a better / faster /easier way?
I read something about {url:_self}?
And also {page:title}?
Could I just use that in the e-mail body to show the URL? Or do I need to create a hidden field and use these tags for the value of the hidden field?
I also read:
https://www.chronoengine.com/faqs/58-cfv4/cfv4-elements-and-html/2631-how-can-i-get-information-about-the-current-page
But I am not sure how to implement this in CF6... Or is there a better / faster /easier way?
After some testing and to answer my own question:
You can use {url:_self} to get the current page URL.
You can use {page:title} to get the current page URL.
These tags can be used as the value for a (hidden) field in the form.
But they can also be used in the body of the e-mail. No need to add them to the form first if you don't need those values in the form.
Kind regards,
Jip
You can use {url:_self} to get the current page URL.
You can use {page:title} to get the current page URL.
These tags can be used as the value for a (hidden) field in the form.
But they can also be used in the body of the e-mail. No need to add them to the form first if you don't need those values in the form.
Kind regards,
Jip
This topic is locked and no more replies can be posted.