AnsweredAssumed Answered

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

Question asked by jrflannery on Aug 15, 2018
Latest reply on Aug 8, 2019 by dot_mmekuria

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:




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.