I have 2 roles: "candidate" and "enterprise".
I've got "User role selection" as "Single role", because no one should have these both roles at the same time.
"Required" is "No", because some people would not register for job special options of the site, so just not choosing any of these 2 roles.
1) when "Selection method" is "Radio Buttons/Checkboxes".
user is obliged to choose between two roles. So ("Required" is "No") doesn't work
2) when "Selection method" is "Selection Box"
user is obliged to choose between two roles. So ("Required" is "No") doesn't work
3) when "Selection method" is "Checkboxes"
user could choose both roles. So ("Single role") option doesn't work.
I would like to use "Checkboxes" option if it's possible but to give an error to user if he chooses both roles, or even better to have checkbox that would switch as radio button, but also could be unchecked.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | autoassignrole-1249458-6.patch | 8.5 KB | mike.davis |
Comments
Comment #1
hefox commentedTo clarify, this is a support request on a patch that hasn't been committed yet, correct?
Basically, if radios/select is not required, it needs to add a blank option "None", yea?
Comment #2
clashar commentedhefox, yeah functionality that doesn't work before the patch from #983612: 'Allow user to choose' functionality doesn't work is committed.
Yes, I think adding "None" when ("Required" is "No") could be fine.
Comment #3
hefox commentedPutting this as postponed until the parant patch is in XD Remember to review the other one so it can get in!
Comment #4
hefox commentedComment #5
mike.davis commentedSurely the choice of having radio/ checkbox & checkbox is not needed. You would just need radio/ checkbox, which would then be dependant on if it was a single selection or multi selection.
i.e.
if single role selection & radio/ checkbox is selected, than the frontend will only show radio buttons
or
if multiple roles selection & radio/ checkbox is selected, than the frontend will only show checkboxes
If single was selected and non mandatory was also selected, than an additional option would need to be added to the radio buttons for 'none', similar to the selection box as mentioned by @clashar
Comment #6
mike.davis commentedHere's a patch with changes as detailed in #5
Comment #8
mike.davis commentedThis has been committed now.