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>