RSForm! Pro: How to clear default value on click

When you set up a default value for a text box or text area in RSForm Pro users have to delete the default value manually.

If you want to remove the default value when users click in the text box or text area then add the following code to the fields “Additional attributes” section on the right when you select to edit the field.
onfocus="if(this.value == 'your_default_value') this.value ='';"
onblur="if(this.value == '') this.value='your_default_value'"

Replace “your_default_value” with your default value text.

Hope this helps

Share
This entry was posted in Joomla and tagged , , , . Bookmark the permalink.

One Response to RSForm! Pro: How to clear default value on click

  1. itzik says:

    thanx, works great!

Leave a Reply to itzik Cancel reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam protection by WP Captcha-Free