Hello,
I created a form on a new Plone 5 site that I want to protect against robots.
I use for the current site with Plone 4.3 the add-on 'collective.z3cform.norobots' that works fine.
I tried the same with Plone 5 and I could any value to the norobots field and the validation passes. The validation only fails if I leave the field blank.
My source code looks like this:
form.widget(norobots=NorobotsFieldWidget)
norobots = schema.TextLine(title=_(u'Are you a human ?'),
description=_(u'In order to avoid spam, please answer the question below.'),
required=True,
)
fields = field.Fields(ISiteAccountForm)
fields['norobots'].widgetFactory = NorobotsFieldWidget
validator.WidgetValidatorDiscriminators(NorobotsValidator, field=ISiteAccountForm['norobots'])
Seemed so that this add-on doesn't work with Plone 5. Are there another add-on etc. that I could use instead to reach my goal, keep away robots?
Thanks for any hints,
Andreas