AbanteCart Community

General Topics => General Discussion => Topic started by: Marvin C. on August 10, 2025, 11:57:43 PM

Title: When a user submits a form, how can we automatically obtain the url of the page?
Post by: Marvin C. on August 10, 2025, 11:57:43 PM
When a user submits a form, how can we automatically obtain the url of the page?The form is on the product page.I want to automatically obtain the link or product name of the product when the user submits the form.
Title: Re: When a user submits a form, how can we automatically obtain the url of the page?
Post by: Basara on August 11, 2025, 01:28:06 AM
Hello.
If you've added a custom form via the Form Manager, you can do this by adding a hidden input field to your form, then filling it with JavaScript when the page loads.