Add page URL of form in admin email

Joanne created the topic: Add page URL of form in admin email

I have created a feedback form that is on a number of different pages of my client's website (18 pages).

I would like to track which page the user was on when they completed the form.

Is it possible to add some kind of code that automatically adds the feedback form's page URL to the email notification that admin receives?

I don't want to have to create a feedback form for each different page.

Thanks

#24377

Please Log in or Create an account to join the conversation.


Support replied the topic: Add page URL of form in admin email

Dear Joanne,

You can create a hidden field and write a custom javascript that fills hidden field with PageURL


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#24398

Please Log in or Create an account to join the conversation.


Joanne replied the topic: Add page URL of form in admin email

That's great news!

Could you please let me know the custom javascript to use or direct me to some information?

The javascript needs to dispaly the web page url that the form is on.

Thanks

#24425

Please Log in or Create an account to join the conversation.


Support replied the topic: Add page URL of form in admin email

Dear Joanne,

Here is that JS

document.getElementById('your_hidden_field_id').val(window.location.href)


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#24470

Please Log in or Create an account to join the conversation.


Joanne replied the topic: Add page URL of form in admin email

Thanks for your help, but the hidden field is not showing in the admin email.

Here are the values in the hidden field:

Field ID: 12_elementform_id_temp
Field Name: URL of Feedback Form
Field Value: document.getElementById('12_elementform_id_temp').val(window.location.href)

I have added this to the admin email:

%URL of Feedback Form%

As mentioned, nothing is showing up in the admin email.

Please let me know what I have to do to correct this.

Thanks.

#24571

Please Log in or Create an account to join the conversation.


Support replied the topic: Add page URL of form in admin email

Dear Joanne,

We replied to your email.


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#24613

Please Log in or Create an account to join the conversation.


Time to create page: 0.210 seconds
Powered by Kunena Forum

WORLD-CLASS SUPPORT

We are here for you every step of the way. Turn to our support with any questions you might have about our products and services. Our experienced customer care team is available to help you as fast as we possibly can.

Contact us