Running into an issue where i seem to be unable to use indexed-repeat twice in an if statement. I have tried a couple of different ways around as shown below:
if( string-length(indexed-repeat(${field2}, ${repeat}, 1)) > 0, indexed-repeat(${field2}, ${repeat}, 1), 'UTP') |
if( indexed-repeat(${field1}, ${repeat}, 1) = 'UTP', 'UTP', indexed-repeat(${field2}, ${repeat}, 1)) |
When saving the xls form i don't get any errors but when looking at the fields in the survey, it throws an error and just shows the calculation as opposed to the desired result.
Any ideas? is there a limit on using indexed-repeat in if statements?
Cheers