Validation of Field Name

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
eayvl
User
Posts: 315

Validation of Field Name

Post by eayvl »

I can add a new validation of field name? besides of: email, credit card, us zip code etc.

Thanks.


mobhar
User
Posts: 11745

Post by mobhar »

Yes, you can. You may simply follow these following steps:

  1. Put your own global validation function into "Global Code" under "Server Events" -> "Global" -> "All Pages",
  2. Go to "Tools" -> "Advanced Settings" and then from "General" -> "Custom validation functions", append your own name function at the end of existing ones (separated by comma),
  3. Go to "Fields" setup, then from "Edit Tag" pane -> "Validation" -> "Validate", just select your own validation function above.

Post Reply