FORM MAKER IP & SUBMISSION ADDRESS TRACKING
Augusto created the topic: FORM MAKER IP & SUBMISSION ADDRESS TRACKING
Hello,
I have 1 form in my website and it is in every page. But I need to track from which page it was submitted and also track the IP of the person who submit the form.
My website:
www.gohwc.com
Thanks in advance.
Please Log in or Create an account to join the conversation.
8 years 6 months ago
Support replied the topic: FORM MAKER IP & SUBMISSION ADDRESS TRACKING
Dear Augusto,
This could be done by writing a few lines of Javascript code in Form Options > Additional Javascript. We recommend using jQuery, since it requires a few simple lines and executes pretty fast.
Please add hidden fields to your form, for URL and IP. Afterwards write jQuery, using field IDs.
Here's a hint code to record URL, which you can add to before_load() function:
// Get URL and write it in hidden field:
var pathURL = location.pathname;
jQuery('#hidden_field_id').val(pathURL);
As for the IP, you can use this link as a guide: stackoverflow.com/questions/19953328/how...javascript-or-jquery . Suggested code uses JSON, but there might be other forums with simpler code.
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 6 months ago
Augusto replied the topic: FORM MAKER IP & SUBMISSION ADDRESS TRACKING
Thanks,
I tried but it did not work, Can you help?
Please Log in or Create an account to join the conversation.
8 years 6 months ago
Support replied the topic: FORM MAKER IP & SUBMISSION ADDRESS TRACKING
Dear Augusto,
Did you make sure to change hidden_field_id to the actual ID of your hidden field? If not, please do that, this code does work on our end.
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 6 months ago
Augusto replied the topic: FORM MAKER IP & SUBMISSION ADDRESS TRACKING
Tried in many ways:
// Get URL and write it in hidden field:
var pathURL = location.pathname;
jQuery('wdform_27_elementform_id_temp').value(pathURL);
// Get URL and write it in hidden field:
var pathURL = location.pathname;
jQuery('#27hidden_field_id').value(pathURL);
// Get URL and write it in hidden field:
var pathURL = location.pathname;
jQuery('27hidden_field_id').value(pathURL);
Please advice.
Please Log in or Create an account to join the conversation.
8 years 6 months ago
Support replied the topic: FORM MAKER IP & SUBMISSION ADDRESS TRACKING
Dear Augusto,
The format should be this way:
var pathURL = location.pathname;
jQuery('#wdform_5_element1').val(pathURL);
Please notice the # sign before the ID. Also wdform_27_elementform_id_temp is not the correct format of field ID. You should get the exact ID from frontend of your form. Please check this animated screenshot: gyazo.com/5fec168a0f264105a5f25ee4ba1e2685 . You can use your browser developers tools (F12) to get the ID.
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 6 months ago
Augusto replied the topic: FORM MAKER IP & SUBMISSION ADDRESS TRACKING
Hello,
I have made the changes as advised still not working.
Can you please provide with an email where I can provide with access login and password?
Please Log in or Create an account to join the conversation.
8 years 6 months ago
Support replied the topic: FORM MAKER IP & SUBMISSION ADDRESS TRACKING
Dear Augusto,
Please feel free to send your e-mail to [email protected], mentioning the URL to this forum topic in your e-mail.
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 6 months ago