• 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 fill dynamicly a free text

How to fill dynamicly a free text 2 years 11 months ago #41160

  • rgouyon
  • rgouyon's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Thank you received: 1
Hello

I want to dynamicly fill a free text with a javascript function. In this function i check different condition and I want to show a specific text according the condition.

In my javascript section I have something like that
mytxt=getElementByid('myfreetext');
if (condition1){
mytxt.value=" condition1 is met";
}
if (condition2){
mytxt.value=" condition 2 is met";
}

But it seems the getElementById returns null when the element is a Free Text
The administrator has disabled public write access.

How to fill dynamicly a free text 2 years 11 months ago #41170

  • andreic
  • andreic's Avatar
  • NOW ONLINE
  • RSJoomla! Official Staff
  • Posts: 713
  • Thank you received: 59
Hello,

Would the Conditional fields feature not fit this scenario, this way you do not need to use custom scripting, just display a different Freetext field based on the selections made in previous form fields?
www.rsjoomla.com/support/documentation/r...ditional-fields.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

How to fill dynamicly a free text 2 years 11 months ago #41171

  • rgouyon
  • rgouyon's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Thank you received: 1
Yes I have seen this one but it seems it does not work properly with FreeText
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!