Jake Bunce
Well-known member
Jake Bunce submitted a new resource:
Custom user field callback, validate value (version 1.x) - For when you need special code to validate the value entered.
Read more about this resource...
Custom user field callback, validate value (version 1.x) - For when you need special code to validate the value entered.
This is a skeleton for creating a callback for a custom user field. The callback is used to validate the value entered by the user. For example, if you are collecting some kind of ID that you need to check against another database.
The callback is specified when editing the custom field:
View attachment 26184
The skeleton contains this file which matches the callback name:
library/Callback/UserField.php
The example code only accepts a value of '123'. Otherwise it defines an...
Read more about this resource...