Hello,
I was wondering if it is possible to send to the user the current page url via mail after the form is being submitted?
Any suggestion?
Non-developer here, but I am html savvy and have no fear in copy/paste misterious codes🙂
Thank you
I was wondering if it is possible to send to the user the current page url via mail after the form is being submitted?
Any suggestion?
Non-developer here, but I am html savvy and have no fear in copy/paste misterious codes🙂
Thank you
Hi oloccina,
Please try this code in the email template:
best regards,
Max
Please try this code in the email template:
<?php echo \JURI::current(); ?>
best regards,
Max
Thanks! that works.
It only works if the url where the form is placed is a SEO friendly one,
eg. if the url is
https://mysite.com/index.php?option=com_chronoforms5&chronoform=iscrizione-newsletter-cherry
it just sends the user this url
https://mysite.com/index.php
but it's perfectly fine as I am only going to use this for seo friendly urls.
Thanks again!
It only works if the url where the form is placed is a SEO friendly one,
eg. if the url is
https://mysite.com/index.php?option=com_chronoforms5&chronoform=iscrizione-newsletter-cherry
it just sends the user this url
https://mysite.com/index.php
but it's perfectly fine as I am only going to use this for seo friendly urls.
Thanks again!
Hi oloccina,
You may try instead:
Best regards,
Max
You may try instead:
<?php echo \GCore\Libs\Url::current(); ?>
Best regards,
Max
This topic is locked and no more replies can be posted.