• 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: Autofill field with article title

Autofill field with article title 5 years 10 months ago #39234

I'm unable to do this per instructions:
www.rsjoomla.com/support/documentation/r...-the-page-title.html

Using PHP method instead of title filling it fills with category name. In this case "España" instead of "5 dias barcelona tour por sue cuenta".
www.amotours.com/espana/5-dias-barcelona-tour-por-su-cuenta

The form is under tab "cotizacion"

Any help would be appreciated. I also tried the java script method however was unable to get anything going with that with nothing being filled on submission.
The administrator has disabled public write access.

Autofill field with article title 5 years 9 months ago #39245

  • bogdan.tataru
  • bogdan.tataru's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 174
  • Thank you received: 40
Hello,

This can be achieved easily through Javascript. You will have to go to Components > RSForm!Pro > Manage forms > Select your form > Form Properties > CSS&Javascript and add the following script within the Javascript section:
<script type="text/javascript">
window.addEventListener('load', function () {
document.getElementById('myfield').value = document.title;
}, false);
</script>

Note that you will have to replace 'myfield' with the id of your field.
My help is not official customer support. To receive assistance, submit a ticket by clicking here
The administrator has disabled public write access.
The following user(s) said Thank You: juan.carlos.stauring
  • 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!