Send page link (or some ID) on submition
Vladimir Plestina created the topic: Send page link (or some ID) on submition
Hello,
I have few product and I would like to put Contact form under each product. Is it possible that, when I receive message for product, I also receive link of the page so I can know for which product is inquiry? Is there way to make one form and receive info from which page form is sent?
thanks
Vladimir
Please Log in or Create an account to join the conversation.
- Topic Author
- Vladimir Plestina
- Offline
- Fresh Boarder
- Posts: 2
- Thank you received: 0
8 years 5 months ago
Support replied the topic: Send page link (or some ID) on submition
Dear Vladimir,
This is surely possible! You simply need to add a hidden field to your form and write a couple of jQuery code lines in Form Options > Additional Javascript.
Here's the approximate code:
var pathURL = location.pathname;
jQuery('#hidden_field_id').val(pathURL);
where hidden_field_id is the ID of your hidden field. You can write this code in before_submit() or before_load() functions in Additional Javascript.
Thank you!
Best regards,
Web-Dorado team
Joomla extensions ,
Wordpress plugins ,
Drupal modules
Please Log in or Create an account to join the conversation.
8 years 5 months ago
Vladimir Plestina replied the topic: Send page link (or some ID) on submition
Thank you for your replay, but I can not find Form Options > Additional Javascript.
I bought Contact Form Maker and all I have under Form Options is:
General Options
Email Options
Actions after Submission
I can not find Additional Javascript
best regards
Vladimir
Please Log in or Create an account to join the conversation.
- Topic Author
- Vladimir Plestina
- Offline
- Fresh Boarder
- Posts: 2
- Thank you received: 0
8 years 5 months ago
Support replied the topic: Send page link (or some ID) on submition
Dear Vladimir,
That's correct, sorry for misleading you.
In that case you can write your code in <script> tag of Form Maker in the following files:
/components/com_contactformmaker/views/contactformmaker/tmpl/default.php (for component),
/modules/mod_contactformmaker/helper.php (for module)
/plugins/content/loadcontactformmaker/loadcontactformmaker.php (for plugin)
Thank you!
Best regards,
Web-Dorado team
Joomla extensions ,
Wordpress plugins ,
Drupal modules
Please Log in or Create an account to join the conversation.
8 years 5 months ago