Please enable JavaScript to view this site.

Navigation: Advanced topics > Events > Global events > Register page

Events.Before registration

Scroll Prev Next More

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

Registration.

Recommended predefined actions and sample events:

Send a simple email

Send an email with new data

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

Redirect to another page

See also:

Grid Row JavaScript API: row.getFieldValue()

Events.After successful registration

Events.After unsuccessful registration

Registration and passwords

CAPTCHA on authentication pages

Login form appearance

Sign in with Google

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software