Hello,
My request is simple. In a form, I would like to compare if the value of a field already exists in a sharepoint list.
I've created a data connection (with a sharepoint list) that I can use for some treatment. For a field, I made a validation rule which compares his value with the values of the existing sharepoint list.
The rule is : if SiteName is equal to ListSiteNames -> display of a message Error! . But this rule is only case sensitive (if "Utaka" is equal to "Utaka -> Error! )
For the moment, the rule (if "utaka" is equal to "Utaka") is not an error, but I would like that it's an error.
I've created another condition : if the expression "msxsl:string-compare(.,xdXDocument:GetDOM("CNSS")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/ListSiteNames, "", "i") = 0"
This condition works but compares only with the first element of the list, I can compare with the thirth element if I want when changing with SharePointListItem_RW[3] but never with the whole list.
I call on your expertise to help me.
Thanks in advance.