Default Text attribute on text Data Items

I’m trying to understand this data item attribute a bit better and noticed that the help text for it says For example, entering “username” (not case sensitive) will default the text value to the current logged in user’s username.

My understanding based on this is that if the default text for a data item is username then when I open an app with that field on it, the field gets defaulted as ian.p. Or will it actually default to username?

If it’s the prior, is it just the username keyword that gets substituted, or are there others as well? I’ve seen nwsvusername used on some other data items for example which seems to imply a similar type of substitution that the platform might automatically do?

Either username (deprecated) or nwsvusername work as System Value keywords.

This field specifies the default text value that appears when creating a new record with this data item.

Some values are considered System Values which are keywords that resolve to a calculated value when initialized. For example, the nwsvusername value becomes the username of the user that is creating the record.

Examples of other System Values include (the non-nwsv-prefixed values are deprecated and the help text needs to be updated):

  • Date/time: nwsvcurrentdate, nwsvcurrentdatetime, nwsvdatebegintime, nwsvdateendtime, nwsvcurrenttime
  • Relative date ranges: nwsvonedaypast, nwsvonedayforward, nwsvsevendayspast, nwsvsevendaysforward, nwsvthirtydayspast, nwsvsixtydayspast, nwsvninetydayspast, nwsvoneyearpast, nwsvthirtydaysforward, nwsvsixtydaysforward, nwsvninetydaysforward, nwsvoneyearforward
  • Text: nwsvlifecycle, nwsvusername, nwsvnamespace
  • IDs: nwsvuserrecordid, nwsvuserdirectoryid, nwsvuserorgunitid, nwsvusercompanyid, nwsvdefaultuserorgunitid, nwsvdefaultusercompanyid, nwsvoverrideuserorgunitid, nwsvoverrideusercompanyid