jForms widget that shows reCaptcha
in the configuration, sets:
[forms]
captcha.recaptcha.validator = \jelix\forms\Captcha\ReCaptchaValidator
captcha.recaptcha.widgettype = recaptcha
[recaptcha]
;see https://developers.google.com/recaptcha/docs/display to know the meaning
; of these configuration parameters.
theme=..
type=..
size=..
tabindex=..
in the localconfig.ini.php, set the site key and the secret (see your google recpatcha account to retrieve them)
[recaptcha]
sitekey= your recaptcha key
secret= your secret value
then indicate to use recaptcha, in the
<captcha validator="recaptcha"/>
[forms]
captcha=recpatcha
| package |
jelix |
|---|---|
| subpackage |
forms_widget_plugin |
__construct( $args)
_outputAttr( &$attributes)
commonJs()
escJsStr( $str)
fillSelect( $ctrl, $value)
getControlAttributes()
getCSSClass()
getId()
getLabelAttributes( $editMode)
getName()
getValue()
getValueAttributes()
outputControl()
outputControlValue()
outputHelp()
outputJs()
outputLabel( $format = '', $editMode = true)
outputLabelAsFormLabel( $label, $attr)
outputLabelAsTitle( $label, $attr)
outputMetaContent(\jResponseHtml $resp)
setAttributes( $attr)
setDefaultAttributes( $attr)
setLabelAttributes( $attributes)
builder : \jelix\forms\Builder\HtmlBuilder
parentWidget : \jelix\forms\HtmlWidget\ParentWidgetInterface
defaultAttributes : array
| var |
|---|
array
attributes : array
| var |
|---|
array
labelAttributes : array
| var |
|---|
array
valuesSeparator :
_endt :