Full JSON Object Structure
This is a simple validator that checks for specified conflicting values in a multi select component.
[
{
"key":"InputKey",
"type":"customdropdown",
"props":{
"label":"Pets that get along",
"required":true,
"placeholder":"Select pets",
"bindLabel":"description",
"bindValue":"id",
"multiple":true,
"options":[
{
"id":"Cats",
"description":"Cats"
},
{
"id":"Dogs",
"description":"Dogs"
},
{
"id":"Parrots",
"description":"Parrots"
}
]
},
"validation":{
"messages":{
"required":"Error message for required",
"multiSelectConflictValues":"Conflict: The cats will eat the parrots."
}
},
"validators":{
"validation":[
{
"name":"multiSelectConflictValues",
"options":[
"Parrots",
"Cats"
]
}
]
}
}
]
Possible Options