We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Validate Custom Fields

Development and Programming

jtancil's avatar
jtancil
2 posts
15 years ago
jtancil's avatar jtancil

How can I validate custom fields, say to require that the entry be an email address or phone number? I don’t see a way to do this.

       
jonathanmelville's avatar
jonathanmelville
132 posts
15 years ago
jonathanmelville's avatar jonathanmelville

I end up using clientside validation (aka javascript) to validate fields. This is the easiest and fastest solution unless you have to have serverside validation for some reason.

       
Pascal Kriete's avatar
Pascal Kriete
2,589 posts
15 years ago
Pascal Kriete's avatar Pascal Kriete

If you’re writing your own fieldtype you can include a validate() method in your fieldtype.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.