I am using ODK-X (ODK Services, ODK Survey and ODK Tables).
I want to restrict options based on the configured username (from ODK Services settings). I see the column with the username is indicated as _row_owner. I tried calling this {{data._row_owner
}} but it doesn’t show any value. I also tried {{data.username}} and I still can’t get the value.
Is this possible? If it is, I will be grateful if anyone can share the syntax I can put in ODK-Survey form to get this value.
You can use the javascript interfaces to get the active user.
odkcommon.getactiveuser()
More information can be found here:
https://docs.opendatakit.org/odk-x/injected-interfaces-methods/
Thanks W_Brunette. It has worked perfectly well. Much appreciated.