I have a problems if anyone can help!
I’m trying to use the selected-at function in hidden value, but it always shows me an error message
I have text question called ‘address’ then followed by hidden value ‘select_text’ with the statement in it says:
selected-at( #form/address , 2)
but when testing it gives me the following error message “Calculation Error: Error in calculation for /data/select_text Attempting to select element 2 of a list with only 0 elements.”
I feel I’m missing something obvious but I could not find what is!!
I having a similar problem with sort function in hidden value caled ‘sort_text’
I have in the hidden value: sort(#form/list_of_names, true())
but it is giving me this error: "Calculation Error: Error in calculation for /data/sort_text Called sort() on empty list with args org.javarosa.xpath.XPathLazyNodeset@45d8fccd
anyone can help or explain what is going wrong please!