I have a Survey123 form where I'd like certain fields to be read-only when a record is brought back in the inbox (so they are only editable when a user creates a brand new record). I've done this before by adding the ObjectID in as a null field and making the field read-only if string-length(${objectid})>0 (new records not getting a ObjectId until they've been submitted).
In my current form this won't work as I have two repeats and I'd like certain fields in both of these to be read-only. I can put in an ObjectId field for both and it works (even though they are named the same), but the string-length(${objectid})>0 bit won't work S123 can't differentiate between them.
Is there a different way where I can calculate if a record in either repeat has yet to be submitted? Or is there a way to label the ObjectID fields so that the form can deal with them separately?
Any help would be greatly appreciated.