Smart name display, with conditional options based on contact type/details?

Moderators: dwp, devin

Post Reply
arcv19
Posts: 3
Joined: Wed Jun 27, 2018 5:37 pm

Smart name display, with conditional options based on contact type/details?

Post by arcv19 »

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,

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

This would accommodate all three types.

Perhaps a definable format, with conditional variable display?
Post Reply