Full JSON Object Structure
{
"fields":[
{
"type":"sections",
"fieldGroup":["..."],
"validators":{
"validation":[
{
"name":"uniqueField",
"options":{
"fieldKeys":{
"primaryKey":{
"fields":[
"targetKey_1",
"targetKey_2"
],
"message":"This field should not be the same as PrimaryKey"
},
"primaryKey_2":{
"fields":[
"targetKey_3"
],
"message":"This field should not be the same as PrimaryKey_2"
}
}
}
}
]
}
}
]
}
This should be set at the top most level sections . Make sure the fields you are comparing are not disabled you may alternatively make them readonly if you want to prevent the user from interacting with them.
Possible Options
See uniqueField in the maintained Validators reference.