Blank space validation in ColdFusion cfinput

For validating a required input field for blank space, we can use the attribute 'Validate="noblanks"  in the cfinput tag.
For example,


<cfform name="test" method="post" action="" >
Name:<cfinput type="text" name="firstname"  required="yes" validate="noblanks"
 message="Please Enter Your firstname">
<cfinput type=" submit" name="submit" value="Submit">
</cfform>

Comments

Popular posts from this blog

how to add new line in google form questions | Fix for next line issue in google form questions

How to add new line in dropdown type question in google forms