Implement custom validation logic
-
Hello! I’ve added a custom field following the instructions here https://givewp.com/documentation/developers/how-to-create-custom-form-fields/.
It is a text field that should contain a fiscal code number (PAN number for Indian donors).
Specifically I have a function that via regex checks if the input string is correct and I’d like to know which GIVE actions should I hook that function to, so that if the input value is not valid the form is not processed and an error message appears like the one for required fields.I’ve been struggling with this for a while now and any help is greatly appreciated. Thank you
The topic ‘Implement custom validation logic’ is closed to new replies.