Buy Now
Sign in

Pass the page url with the form

innova , May 26 2021, 10:32
I
innova 41
May 26 2021, 10:32 #396556
Hello,
I'm using Joomla with ChronoForms 7.
I've got different pages for different products. Each page displays a form where the user can send a message asking for more information about that product.
I don't want to ask the users to write the name of the product they are interested in.
Is it possible to receive the name of the product (in this case it would be the Article name) with the rest of the contact form fields?
Or the whole URL, I don't mind... for example: domain-name.com/category-name/product-name
Thank you.
GreyHead 65
May 26 2021, 13:14 #396558
Hi innova,
The page url is included with the form data - check the ShortCodes list to see what it is called. It should then be possible to include that data in your email - but it may require some custom code to add it.
Bob
If you'd like to buy me a coffee or two, thank you very much
I
innova 41
May 26 2021, 17:06 #396560
Hi Bob,
I've tried just inserting {page:title} and {page:url} shortcodes inside the form body (settings/adming email) but I don't get any data.
Then I've tried with the shortcode {url:_self} and I've received the next information within the form message:
https://domain-name/category-name/product-name/chronoform=form-name&gpage=end_page
Essentially is what i wanted but the url has also the form name, etc. at the end.
I don't know if this is all correct, if I'm doing something wrong... is there another way to do it better?
Thank you.
GreyHead 65
May 27 2021, 09:18 #396567
Hi innova,
It looks as if you are using the shortcode when the form submits and so you are getting the On Submit URL. Please try using the shortcode in the Load page and you can save the URL - or extract the product name - to the user session or include it in a hidden input in the form.
Bob
If you'd like to buy me a coffee or two, thank you very much
I
innova 41
June 02 2021, 14:34 #396604
Hi Bob, I've used a hidden input in the form and it works
Thank you!