• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: How to Record Submitter Information

How to Record Submitter Information 9 years 11 months ago #31321

Good Afternoon,

I am using RSForm Pro and would like to record details about the submitter if possible. This is for a simple contact form, so the submitter is not a logged in user.

By default RSForm records the submitter IP Address, but I would also like to know, at the very least, the browser and system they are using. I'm not sure what other information is possible to record, but my goal is to have this data for troubleshooting reports about issues they may have experienced with the website.

I checked the knowledgebase and couldn't find anything on this. Any feedback?
The administrator has disabled public write access.

How to Record Submitter Information 9 years 4 months ago #33397

Not sure if this info will be of any use to you now but I wanted something similar and managed to achieve it by creating a hidden field called "Browser" then entering the following piece of javascript into the scripts bit of the form's properties:
<script type="text/javascript">
	function detect() {
		document.getElementById('Browser').value = (navigator.userAgent); 
	}
</script>

I then just added an event to trigger it to run via the "additional attributes" bit of one or more of the field elements so either something like onfocus="detect()" on the first field in the form or onclick="detect()" on the submit button.

Please note that this outputs the full userAgent string, if you want to parse just the name of the browser then you'll need a bit of extra scripting to do so, for me however I was happy to keep it simple.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!