react-awesome-query-builder
react-awesome-query-builder copied to clipboard
Force unique/mandatory field definition within group
For above rule we have a configuration like this,
results: {
label: "Results",
type: "!group",
subfields: {
product: {
type: "select",
fieldSettings: {
listValues: ["abc", "def", "xyz"],
},
valueSources: ["value"],
},
score: {
type: "number",
fieldSettings: {
min: 0,
max: 100,
},
valueSources: ["value"],
}
}
}
Is there any option to make all the subfields compulsory and user can not select duplicate subfields?
for example we can have such properties avoidDuplicate: true
& mandateSubfields: true
.
If both of these properties are true
then user will not be able to see plus icon
right besides Results field input as he has to enter all the values and there will not be individual delete button on the subfields.
Similar to https://github.com/ukrbublik/react-awesome-query-builder/issues/244
Is any update on force unique field? I need same feature . please help me how to solve it .