I have drop down list on repeating section which is populated with "Languages" list from XML file. I would like to restrict duplicate language selection in the drop down but it's not working.

Here is the interface,

enter image description here

Repeating section is bind with "Questions" section and drop down field is bind with "Label1"

enter image description here

Here is data source of drop down list,

enter image description here

I tried adding following formula on "result" field to get the count of duplicate selection but it is returning 0 all the time,

count(Label1[text() = preceding-sibling::*/../Questions/Question/Label1/text()]) + count(Label1[text() = following-sibling::*/../Questions/Question/Label1/text()])

Any help will be must appreciated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.