-
Notifications
You must be signed in to change notification settings - Fork 554
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
How to always use OR operator between groups #689
Comments
A condition is not applied between items but inside a group, and a group can contain both groups and rules. So in order to get the behavior you want, we should be able to restrict which groups can contain only groups or only rules, configuration hell ! The only thing you can do is initializing the builder and use the flags described here http://querybuilder.js.org/#method-setRules $('#builder').queryBuilder({
filters: ....,
allow_empty: true,
default_group_flags: {condition_readonly: true, no_add_group: true},
});
$('#builder').queryBuilder('setRules', {
condition: 'OR',
flags: {no_add_rule: true, no_add_group: false}
}); This will restrict the builder to only two levels :
|
You described my dream thank you. I try it and get feedback |
I tried to do and got |
add When posting an error, please use the unminified version of the code, with the minified code it's impossible to find where the error is thrown. |
This is a bug, the |
I was searching for the way to remove the 'add group' button from sub groups. I landed up here. Please tell me how to do it? |
How to always use OR operator between groups and AND between rules?
The text was updated successfully, but these errors were encountered: