Description
Function BeforeRegister is executed on the registration page.
Syntax
BeforeRegister($userdata,$message,$pageObject)
Arguments
$userdata
an array that stores values entered on the Registration page. To access a specific field value, use $userdata["FieldName"].
Note: Field names are case-sensitive. If the field name is PlayerId, you should use $userdata["PlayerId"]. Note that $userdata["playerid"] or $userdata["PlayerID"] will not work.
$message
place the message to be displayed into this variable.
$pageObject
an object representing the current page. For more information, see RunnerPage class.
Return value
True: continue with registration.
False: prohibit registration.
Applies to pages
Recommended predefined actions and sample events:
•Save new data in another table
•Insert a record into another table
•Check to see if a specific record exists
•Display a message on the Web page
See also:
•Grid Row JavaScript API: row.getFieldValue()
•Events.After successful registration
•Events.After unsuccessful registration
•CAPTCHA on authentication pages