Hello,
I'd like to set my form up so that conditional visibility is possible for more then one field.
Currently, I'm using an "Index Of" expression, so that the field will only be visible when one of the conditions is met.
Here is the code: IndexOf(["Not Accessible", "Not In Field"], DomainName($feature,"Inspection_Status")) >= 0
I'd like to be able to add to this expression so that I can reference more than one feature, but I haven't had any luck. Does anyone have any suggestions?
Solved! Go to Solution.
Currently, the conditional visibility expressions only apply to the current feature that is being created or edited. In the future, this might change if we add support for Arcade Feature Sets in the context of the form.
If you want to reference other fields on the current feature you can use logical AND (&&) and/or OR (||) operators to combine conditions.
(IndexOf(["Not Accessible", "Not In Field"], DomainName($feature,"Inspection_Status")) >= 0) || ($feature.some_field == "test")
Does that answer your question?
Currently, the conditional visibility expressions only apply to the current feature that is being created or edited. In the future, this might change if we add support for Arcade Feature Sets in the context of the form.
If you want to reference other fields on the current feature you can use logical AND (&&) and/or OR (||) operators to combine conditions.
(IndexOf(["Not Accessible", "Not In Field"], DomainName($feature,"Inspection_Status")) >= 0) || ($feature.some_field == "test")
Does that answer your question?
That worked great! Thank you.