• 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 add \"onfocus\" criteria to inputs

How to add \"onfocus\" criteria to inputs 16 years 7 months ago #4672

  • diorist
  • diorist's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
I'd like to add the following code to the input tags in my RS forms. Goal is that default text will disappear when the user clicks on the form field:

onfocus=\"this.value=''\"

Anyone have any idea where and how this might be done? Seem like it might require a code hack, since there's no way to modify the form input tags through the component's front end.

Thanks!
The administrator has disabled public write access.

Re:How to add \"onfocus\" criteria to inputs 16 years 3 months ago #6334

  • bradymc
  • bradymc's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
You nailed it on the head already.

Click on the field you want to add this to.
Enter a default value... whatever you want it to say before they click on the field.
Put exactly what you posted into the Additional attributes area.

That should do it.
The administrator has disabled public write access.

Re:How to add "onfocus" criteria to inputs 16 years 2 months ago #6759

I am attempting to do the exact same thing and uipon saving it changes the attribute to-

onfocus="this.value=''"

any idea how to avoid it changing the code?

Thanks.
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!