-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclusive or relationship #629
Comments
Can you provide example of use case |
The |
I mean case where both group and exclusive or for the same option. Both are not applicable for the same option. |
Group achieves the "Required" part whereas I don't see how to use "SetName" (i.e. Mutually Exclusive Options") to say "hey at least one of these sets are required". If there's a way to achieve this XOR relationship without using both Group and SetName together I can do that but I don't know of a way (other than implementing it myself)? I don't fully understand why Group and SetName shouldn't be used together? |
Just show me example to show how both can be applied without contradiction. |
Cc @hadzhiyski |
If the options of group are contained in different setname, it will raise error. |
It did not raise an error prior to 2.8, that's why I opened this issue.
It would be different setnames to achieve the XOR functionality. So for the
And you could do: But not:
or
Does that make sense? |
You can remove group and set the option Required in both sets and apply the same logic. |
Oh you're right, it seems setting |
Glad that you resolved your issue. 👍 |
With the release of 2.8.0. I see that #575
changed it so you can't use
Groups
andSetNames
together. Is there a reason that was removed?Using both together achieved an XOR relationship that was useful. If say, I want at least one option in a group to be required but you can't use the other options in that group at the same time.
The text was updated successfully, but these errors were encountered: