<<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
sMsgTxtDec
Ensures a string value is a valid decimal,optionally within a range. | Summary |
sMsgTxtDec |
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] sMsgTxtDec attribute: sMsgTxtDec |
||||||||||
Value Purpose | The error message presented to the user when the value is not a valid decimal,or is out of range. | |||||||||
Value Rules | Must be a string at least one character in length. | |||||||||
Object Compatibility |
text , password |
|||||||||
Attribute Compatibility |
sMsgRequired , sMsgBadLength , bsNoBadSubStrs , asBadSubStrs , sMsgBadSubStr , bsDontTrimSpaces , bsTrimSpaces | |||||||||
Special Strings |
|
|||||||||
Sub-Range |
|
sMsgTxtDec
Notesutil_string.isNum()
.12345
is both a legal integer and decimal number 12345.54321
is a legal decimal but not a legal integer.TOP
rqd DEC eml int len mcr bss trm sif |
|
VF-Config Snippet | f_orm.fav_dec.sMsgTxtDec = 'Your favorite decimal must be an *decimal*, and between ~RANGE_MIN~ and ~RANGE_MAX~, inclusive.' |
Example Element | <INPUT TYPE="text" NAME="fav_dec"> |
The form | Change the vf-configuration |
TOP
rqd DEC eml int len mcr bss trm sif |
|
VF-Config Snippet | f_orm.secret_dec.sMsgTxtDec = 'Your secret decimal (shhhhh) must be an *decimal*, and between ~RANGE_MIN~ and ~RANGE_MAX~, inclusive.'; |
Example Element | <INPUT TYPE="text" NAME="secret_dec"> |
The form | Change the vf-configuration |
Copyright (C) 2003-2005, Jeff Epstein. All rights reserved.