Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
3.0
-
None
Description
When creating 2 fields of radio type for 2 different options they should have the same name, but different id values. The 'name' parameter is used to generate both the name attribute value, but also the id value. There should be an option to override the default generated id for a field:
#set($field = {'name' : 'favorite_color', 'label' : 'What is your favorite color', 'params' : { 'type' : 'radio', 'size' : '60', 'id' : 'myColorId' }, 'validate' : { 'mandatory' : { 'failureMessage' : $msg.get('core.validation.required.message') }, 'regex' : { 'pattern' : '/^green$/i', 'failureMessage' : 'You are not cool enough to register here.' }, 'fieldOkayMessage' : 'You are awesome.' }, 'doAfterRegistration' : '#saveFavoriteColor()' })
Attachments
Issue Links
- is related to
-
XWIKI-6306 Add an option to generate labels next to inputs of type radio or checkbox on the registration page
- Open