Hi - I'm trying to add a checkbox to the account registration form (XWiki Enterprise
3.5). I can add the field so it renders on the form:
##
## The terms of service agreement, checking.
#set($field =
{'name' : 'tos_agree',
'label' : '<hr />I have read and agree to the above terms of
use.',
'params': {
'type' : 'checkbox'
}
})
#set($discard = $fields.add($field))
However, I would like to validate that the checkbox has been checked before allowing the
registration to take place. I do not need to store the checkbox value in the user objects.
I've tried several validation variations based upon the examples in the registration
code and other places, but nothing has worked, so I thought I would turn to the community
for some help.
Thanks in advance!
-Andrew
City of New York