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.

CommentFileSizeAuthor
#6 autoassignrole-1249458-6.patch8.5 KBmike.davis

Comments

hefox’s picture

To 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?

clashar’s picture

hefox, 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.

hefox’s picture

Status: Active » Postponed

Putting this as postponed until the parant patch is in XD Remember to review the other one so it can get in!

hefox’s picture

Status: Postponed » Active
mike.davis’s picture

Issue summary: View changes

Surely 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

mike.davis’s picture

Status: Active » Needs review
StatusFileSize
new8.5 KB

Here's a patch with changes as detailed in #5

  • mike.davis committed ec2fa5c on 7.x-1.x
    Issue #1249458 by mike.davis: Fixed "Single role" with select box?
    
mike.davis’s picture

Status: Needs review » Fixed

This has been committed now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.