Fields
Contact Selector Field
The Contact Selector Field allows for creating a new contact or selecting an existing one from the contact list.
See contacts for more information on contacts.
Basic usage
Adds a contactselector
field to the fields of an action.
Result
Parameters
See fields for common field parameters like validation and conditional rendering.
Result Data
The data that will be added into stub.data
will be as follows:
All the data key:value pairs are mostly self explanatory, so I will touch a few key data points.
object
contact_person The JSON object containing all the data related to the selected contact. The objects key name will take on the field name.
string
contact_person_label The string that appeared in the Contact Selection field for the selected contact. This is usually the same as descname
string
contact_person.contactuuid This is the unique UUID assigned to this contact.
You can use this UUID:
- add this contact to a contact list
- send messages to in a notification
array
contact_person.contactpoints Is an array of objects. Each object contains the data of a contact point for the contact.
A contact can have multiple contact points, so there could be quite a few object here.