# NAME
HTML::FormHandlerX::Field::noCAPTCHA - Google's noCAPTCHA reCAPTCHA for HTML::FormHandler
# SYNOPSIS
The following is example usage.
In your [HTML::FormHandler](https://metacpan.org/pod/HTML::FormHandler) subclass, "YourApp::HTML::Forms::YourForm":
has_field 'nocaptcha' => (
type=>'noCAPTCHA',
site_key=>'[YOUR SITE KEY]',
secret_key=>'[YOUR SECRET KEY]',
);
Example [Catalyst](https://metacpan.org/pod/Catalyst) controller:
my $form = YourApp::HTML::Forms::YourForm->new({ctx => $c});
my $params = $c->request->body_parameters;
if($form->process($c->req->body_paramseters) {
## Do something with the form.
} else {
## Redisplay form and ask to try again.
}
Example [Catalyst](https://metacpan.org/pod/Catalyst) config:
__PACKAGE__->config(
'HTML::FormHandlerX::Field::noCAPTCHA' => {
site_key => '[YOUR SITE KEY]',
secret_key => '[YOUR SECRET KEY]-IaHaF3jRN4j340MkGLNw6tcDu',
},
);
# FIELD OPTIONS
Support for the following field options, over what is inherited from
[HTML::FormHandler::Field](https://metacpan.org/pod/HTML::FormHandler::Field)
## site\_key
Required. The site key you get when you create an account on [https://www.google.com/recaptcha/](https://www.google.com/recaptcha/)
## secret\_key
Required. The secret key you get when you create an account on [https://www.google.com/recaptcha/](https://www.google.com/recaptcha/)
## theme
Optional. The color theme of the widget. Options are 'light ' or 'dark' (Default: light)
## noscript
Optional. When true, includes the