Smart name display, with conditional options based on contact type/details?
Posted: Fri Jun 07, 2019 2:48 am
I run DWP Pro v3.1.3.2 on Oreo.
Currently options for contact name display format are provided by a list of selectable single options.
E.g., "LastName, FirstName"
In any addressbook, there's a mix of Persons, Persons with Nicknames, and Organizations.
"LastName, FirstName" display does not fit all three of those types.
It would be very useful to have some logic for Name Display.
For example,
This would accommodate all three types.
Perhaps a definable format, with conditional variable display?
Currently options for contact name display format are provided by a list of selectable single options.
E.g., "LastName, FirstName"
In any addressbook, there's a mix of Persons, Persons with Nicknames, and Organizations.
"LastName, FirstName" display does not fit all three of those types.
It would be very useful to have some logic for Name Display.
For example,
Code: Select all
if LASTNAME exists
then
if NICKNAME exists
then
display DISPLAYNAME="LASTNAME, NICKNAME"
else
if FIRSTNAME exists
then
display DISPLAYNAME="LASTNAME, FIRSTNAME"
else
display DISPLAYNAME="LASTNAME"
endif
endif
else
if ORGANIZATION exists
then
display DISPLAYNAME="ORGANIZATION"
else
display DISPLAYNAME="" ; i.e., (blank)
endif
endif
Perhaps a definable format, with conditional variable display?