You will have to write the code for loading the featuresets, but you can do the intersection in a loop.
var test_featuresets = [
FeaturesetByName($datastore, "line_a", ["*"], false),
FeaturesetByName($datastore, "polygon_b", ["*"], false),
FeaturesetByName($datastore, "polygon_c", ["*"], false),
]
for(var i in test_featuresets) {
var inter = First(Intersects(test_featuresets[i], $feature))
if(inter != null) {
return {"errorMessage": "polygon A features must not be intersected with others."}
}
}
return true
Sidenote: Not too sure about that, but I think you have to return a boolean. errorMessage is for Calculation rules. So you probably want to change the return to false and input the error message in the Validation rule window.
Have a great day!
Johannes