Allows you to add ReCaptcha support to a widget
Methods
Render
Render Overload 1
Renders a reCAPTCHA challenge
Velocity
#set($stringResponse = $core_v2_recaptcha.Render())
JavaScript
var stringResponse = core_v2_recaptcha.Render();
Render Overload 2
Renders a reCAPTCHA challenge with an option to set the theme
Velocity
#set($stringResponse = $core_v2_recaptcha.Render($theme))
JavaScript
var stringResponse = core_v2_recaptcha.Render(theme);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
theme | String | A valid reCAPTCHA theme name that will override the default. Valid options are 'clean','red','white (default)', and 'blackglass' | Required |
Returns
String
Validate
Checks to ensure that a valid captcha was performed, best for re-validating server side.
Velocity
#set($booleanResponse = $core_v2_recaptcha.Validate($storageId))
JavaScript
var booleanResponse = core_v2_recaptcha.Validate(storageId);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
storageId | String | Represents a temporary storage Id that stores the reulsts of a captcha validation. Will only be set once after the reCaptcha has been verified. | Required |
Returns
Boolean