• 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: Textarea with default value validation

Textarea with default value validation 9 years 7 months ago #32646

  • sam.samiei
  • sam.samiei's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 23
  • Thank you received: 1
Hi,
I have 2 textarea fileds (NAME and SURNAME) which I added default value to both of them.

For firstname:
Default Value: First Name
Additional Attributes:
onfocus="if(this.value == 'First Name') this.value ='';"
onblur="if(this.value == '') this.value='First Name'"

Thats the same for Surname.

My question is how can I make those 2 fields REQUIRED?
In validation i've added the Required field to Yes, but as they both have values the validation wont be effective. Is there any way I could have the default values and also perform the validations?

thanks in advance.
The administrator has disabled public write access.

Textarea with default value validation 9 years 6 months ago #32647

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
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.

Textarea with default value validation 9 years 6 months ago #32670

Hello,

I have the same question as Sam posted.
The placeholder isn't working for me because when I use this and start typing in the field, the placeholder stays. Any help is much appreciated, 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!