I'm trying to auto generate work order numbers. The work order id should be the current year dash submission number padded with zeros. So the submissions should look like 2024-0001. The closest I got was concat(format-date(now(), '%Y'),'-',count(${location})), which doesn't actually count survey submissions.
There is a blog post that covers this: Creating 'Ticket Numbers' in Survey123 for ArcGIS
you probably are looking for ObjectID, which you don't get until after you submit. Have a look at the blog.