I would like to (automatically) capture and display the "FirstName LastName" of the signed in user. I have used the question type "username", but this pulls through my username and is not a nice format for using in Feature Reports etc.
I could use the pulldata function but this isn't particularly dynamic as new users are added to the portal and would require me to manually update CSV databases of usernames and "FirstName LastName"s.
Is there a way to change the appearance of username type questions?
The short answer is - no - there is no appearance setting that will give you the first/last name of the logged in user.
My first thought was that you could maybe use an API call to figure out the username/first name/last name:
But it seems you need to be an admin to get that information returned because of privacy concerns.
So your best bet would be a hosted CSV file linked to your survey - but like you say you will have to manually update that CSV file, even though it will be automatically linked to your survey.
Look at "Working with external content":
If you manually place the .csv file in the survey's media folder, and at a later time upload a .csv file of the same name to ArcGIS and link it to the survey, the .csv file in the survey is updated from the linked content (if newer).
|pulldata("@property", 'userFullName')||The user's full name|
|pulldata("@property", 'userFirstName')||The user's first name|
|pulldata("@property", 'userLastName')||The user's last name|