Is there a way to access the SubmitterName
that is included in the data on Central while filling out the form? I have some questions that I only want to show to a couple of app and web users and was wondering if I could use the SubmitterName
/ "Submitted by" value as part of the relevant
.
Submitter name is currently only server side, but maybe we should find some way to get added.
Could you maybe ask for name then use last-saved so they don't have to enter it again?
I'm trying to achieve the same / similar outcome - not sure whether for the same reason...
I have a form that is 95% the same for 2 different types of enumerator. I would like to be able to show an extra group of questions based on the app-user (the groups could be thought of as 'worker' and 'supervisor'). My form uses an entity list and allows update of the entity (e.g. has the work been done / checked).
To me it seems pragmatic to manage a single form and entity list and based on the app user allow one group to answer an additional set of questions. But it might not be a widely applicable use-case.
I was thinking of the last-saved
option (e.g. using a select_one for 'worker' or 'supervisor'), but there is scope for error if the person changes group (accidentally or deliberately) - I could maybe use a relevant if last-saved
is not null to hide the question, and hope that no enumerator selects the wrong group first time around! But a more controlled way would be preferable (for me) if the app-user is exposed to the form as a meta-data value.
But happy to explore alternatives... and two separate forms could be the simple one.
I made use of the username
field [doc reference] when I had to implement the same. I bounded the data collection devices to data collectors and each form on that device automatically populated the SubmitterName (or username) from ODK Collect on that device.