Survey123: Parsing “property('username')” calculation value to get clean user name

17719
20
08-15-2018 04:12 AM
JoeFlannery
Occasional Contributor III

Our users log into ArcGIS Online (AGOL) and Esri’s mobile apps with enterprise credentials.  Our AGOL username is automatically created from our email address and a tag at the end.  Like this:

 

Firstname.Lastname@xyz.com_xyz

 

In Survey123, the AGOL username of the person who logs into the app and submits a completed form can be calculated using the "property('username')" formula.  I would like to have the AGOL username populated in my Survey123 form as input to a question, line like - “Inspected By”.

 

In Survey123 Connect, how do I parse the AGOL username calculated by "property('username')" into a readable name?

 

Firstname.Lastname@xyz.com_xyz  -->  Firstname Lastname

Thank you.

Tags (2)
0 Kudos
20 Replies
RachelS
Occasional Contributor III

Hi,

 

Can I check is it still the case if the user isn't signed in the Username field is blank?

As in they aren't forced to sign in from the beginning?

And any plans to change this.

Thanks

Rachel

0 Kudos