Select to view content in your preferred language

Pass Username and Date to Survey123 Form

740
12
Jump to solution
12-08-2023 10:02 AM
kapalczynski
Occasional Contributor III

From Field Maps and a webhook I can pass the Global ID to a RELGlobalID like so

field:REL_GLOBALID={GLOBALID}&

href="arcgis-survey123://?itemID=cb33fc9a37xxx440146&amp;field:REL_GLOBALID={GLOBALID}&amp;callback=https://fieldmaps.arcgis.app" rel="nofollow ugc" target="_blank">Add Form</a>

 

But Im curious how to pass the Current Date to a date field and the logged in user to a username field

1. Can I use the NOW to denote existing date and time?

           field:SomeDateFiled={NOW};

2. What about the logged in user?

            field:UserName={username};

0 Kudos
12 Replies
kapalczynski
Occasional Contributor III

where do you assign the hidden field to the username field

 

0 Kudos
DougBrowning
MVP Esteemed Contributor

There is now a field type of username, not sure the diff.

DougBrowning_0-1702498769343.png

 

this post may help  https://support.esri.com/en-us/knowledge-base/how-to-assign-questions-based-on-user-roles-or-usernam... 

0 Kudos
abureaux
MVP Regular Contributor

The username type should pull the user's username, whereas the pulldata("@property",fullUserName) would pull the full name... I think a picture does this explanation better justice:

abureaux_1-1702504220844.png