Tests whether a value meets a validation or data type rule.
isValid(type, value, min, max, pattern)
→ returns boolean
anyarraybinarybooleancomponentcreditcarddateemaileurodatefloatfunctionguidintegernumericqueryrangeregexregular_expressionsocial_security_numberssnstringstructtelephonetimeurlusdateuuidvariablenamexmlzipcodeUse the isValid function with integer as the type.
isValid("integer", 235)
Expected Result: true
Use the isValid function with email as the type.
isValid("email", "user@example.com")
Expected Result: true
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.