• 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: Pre populating form fields

Pre populating form fields 4 years 1 month ago #41043

  • Crispin
  • Crispin's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 75
  • Thank you received: 4
I am using this bit of code with the link to my form. It pre populates one of my form fields.
<script type="text/javascript">
	var articleTitle = document.querySelector('[itemprop="name"]').textContent.trim();
	var link = document.getElementById('formLink');
	link.href += '&form[VehicleDescription]=' + articleTitle;
</script>

It works well, or did. It now produces an invalid link if SEF links are enabled.
........co.uk/enquiry&form[VehicleDescription]=2005%20Trigano%20Tribute


If they are not enabled a correctly working link is created and it all works well
........co.uk/index.php?option=com_rsform&view=rsform&formId=4&Itemid=128&form[VehicleDescription]=2005%20Trigano%20Tribute

Any ideas how I can fix this so that I can use SEF addresses?
Last Edit: 4 years 1 month ago by Crispin.
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!