1. What is the problem? Be very detailed.
I'm creating a form to collect price data.
I have a list of items in my 'choices' tab. I then have additional columns in my choices tab such as 'quality' and 'unit' that further specify the item being monitored.
I want to place a repeat in the form that will loop through each item and collect data on it.
Within the repeat group, I'm putting a calculation to calculate the item 'label', the item 'quality' and the item 'unit', this information is in a kind of lookup table in the choices tab. This is so I can be very specific about what we're collecting price data on.
I'm kind of seeing it as an alternative to a "pulldata" calculation, so I don't need an external csv.
2. What app or server are you using and on what device and operating system? Include version numbers.
ODK Collect v1.28.4
3. What you have you tried to fix the problem?
I found an article on the forum earlier today where @LN shared a Google Sheet showing how to do this - but the calculation formula wasn't in a repeat group, so I think my syntax needs some help. I never usually write in this style of syntax, so just needing a bit of guidance...
So the formulas I currently have in there are:
instance('item')/root/item[itemindex=${item-counter}]/label instance('item')/root/item[name=${item}]/quality instance('item')/root/item[name=${item}]/unit
4. What steps can we take to reproduce the problem?
See attached xlsform
item_info.xlsx (35.0 KB)
5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.
Thank you for your help!