AnsweredAssumed Answered

Compare string values

Question asked by foconnor on Oct 19, 2017
Latest reply on Oct 20, 2017 by JTedrick-esristaff

I have two similar scenarios that require strings to be compared:


1) A form with two select_one questions, each with a separate lookup list. There is some duplication between the lookup lists. When an value is picked for question 1, it should not be allowed as an answer to question 2. Can I compare the strings to raise an error for the user? Or is it possible to exclude the answer of question 1 from appearing in the lookup list for question 2?


2) Similar to scenario 1, except the two questions use the same lookup list. Again, the value chosen for question 1 should not be allowed as the value for question 2.


Is it possible to undertake string comparison in a constraint? so the constraint for question 2 would look like .!=${question1} or perhaps not(selected(.,${question1}))