| Post |
|
Guest
| Marija 12:10 pm January 21, 2009
| |
|
|
Hi,
I have a form with Input labels inside the input boxes set as default values. But when the field is required it accepts those default values (ie. Your name, Your phone etc) as filled by visitor and it doesn't report the "required" error message.
Is there an option or a way to check if the field contains the default value and if it does to report the "required" alert?
Thank you.
|
|
|
Admin
| Oliver Munich, Germany posts 6237 6:59 pm January 21, 2009
| |
|
|
you need to exclude the default value via a regular expression.
|
|
|
|
|
Guest
| Marija 10:25 pm January 22, 2009
| |
|
|
Hi, thank you for reply… can you post the exact code for this specific regular expression?
Thanx in advance.
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:17 am January 23, 2009
| |
|
|
You can try,e.g:
Your Name|Your Name|^(?!Your Name)
|
|
|
|
|
Guest
| Marija 6:20 pm January 23, 2009
| |
|
|
Ok, that's it. Thank you so much!!!
|
|