<<BACK HOME CNCPT TTRL JS | sf.net/projects/validateformjs | [ U | s | m | ? ] |
RQD dec eml int len mcr bss trm sif | All Concepts | |
frm txt pwd txa rdo sl1 chk slm | All Object Types |
validate_form.js
sMsgRequired
Make an element's value mandatory. | Summary |
sMsgRequired |
All Attributes |
txt pwd txa rdo sl1 chk slm |
Interactive Example Code |
Higher [ trm RQD len dec eml int sif mcr bss ] Lower |
Precedence |
[TOP] sMsgRequired attribute: sMsgRequired |
|
Value Purpose | The error message presented to the user when the value is not provided. |
Value Rules | Must be a string at least one character in length. |
Object Compatibility |
text , password , textarea , radio , select-one , checkbox , select-multiple |
Attribute Compatibility |
sMsgTxtDec , sMsgTxtEmail , sMsgTxtInt , sMsgBadLength , sMsgMCRange , bsNoBadSubStrs , asBadSubStrs , sMsgBadSubStr , bsDontTrimSpaces , bsTrimSpaces , sMsgTxtZip5 , sMsgTxtZip5p4 , sMsgTxtPhone7 , sMsgTxtPhone10 , sMsgTxtSsn |
TOP
RQD dec eml int len mcr bss trm sif |
|
VF-Config Snippet | f_orm.your_name.sMsgRequired = 'What is your name?'; |
Example Element | <INPUT TYPE="text" NAME="your_name"> |
The form | Change the vf-configuration |
TOP
RQD dec eml int len mcr bss trm sif |
|
VF-Config Snippet | f_orm.your_password.sMsgRequired = 'What is your password?'; |
Example Element | <INPUT TYPE="password" NAME="your_password"> |
The form | Change the vf-configuration |
TOP
RQD dec eml int len mcr bss trm sif |
|
VF-Config Snippet | f_orm.your_paragraph.sMsgRequired = 'What is your paragraph?'; |
Example Element | <TEXTAREA NAME="your_paragraph"></TEXTAREA> |
The form | Change the vf-configuration |
TOP
RQD dec eml int len mcr bss trm sif |
|
VF-Config Snippet | f_orm['favorite_station.sMsgRequired'] = 'What is your favorite radio station?'; |
Example Element | <INPUT TYPE="radio"NAME="favorite_station"VALUE="99.5"> 99.5 WJBR |
The form | Change the vf-configuration |
TOP
RQD dec eml int len mcr bss trm sif |
|
VF-Config Snippet | f_orm.favorite_food.sMsgRequired = 'What is your favorite food?'; |
Example Element | <SELECT NAME="favorite_food"> |
The empty string ('') value is required, in order to be 'not provided'. See the select-one
'Object Rules' for details.
The form | Change the vf-configuration |
TOP
RQD dec eml int len mcr bss trm sif |
|
VF-Config Snippet | f_orm['movies_seen.sMsgRequired'] = 'What movies have you seen?'; |
Example Element | <INPUT TYPE="checkbox"NAME="movies_seen"VALUE="bttf">Back To the Future |
The form | Change the vf-configuration |
TOP
RQD dec eml int len mcr bss trm sif |
|
VF-Config Snippet | f_orm.foods_eaten.sMsgRequired = 'What foods have you eaten?'; |
Example Element | <SELECT NAME="foods_eaten"SIZE="3"MULTIPLE> |
The form | Change the vf-configuration |
Copyright (C) 2003-2005, Jeff Epstein. All rights reserved.