Topics and lessons

Adding an automatic full name to user profiles

You can design Triggre to automatically update the full name of a user as soon as they make changes to this data field.

To do that:

  1. Add name properties to the data item User.
  2. Update (or create) the user flow My profile.
  3. Create the flow part that generates the full name.
  4. Create the automation flow that reacts on editing name properties.

Step 1: data item User

First of all, rename the property Name to Full name.

Add First name, Surname prefix, (or initials, depending on the country) and Last name.

Step 2: user flow My profile

Start by creating or modifying the user flow My profile. Insert all name properties except Full name as form fields in the profile. Afterwards, delete the form field Full name and replace it by a Detail.

The first time an user enters this page, they will see their User Full name. The other name properties will be empty.

To be sure that they provide their first and last name, these properties are required.

Profile example. Triggre no-code web app builder.

Step 3: create the flow part Generate Full name

  1. Input is the user.
  2. For First name and Surname prefix: if there is a value present, combine the name with a space (you want spacing between the properties):
Name formula 1. Triggre no-code web app builder.
  1. For Last name just combine with an empty Specific value (it looks the same on the screen, but there is a difference):
Name formula 2. Triggre no-code web app builder.
  1. Combine all properties to the Full name:
Name formula 3. Triggre no-code web app builder.

The decisions make sure that if there is no value available, there is no unnecessary space in Full name.

Note: the flow part below checks for a value in First name and Last name. If you make these properties required in all your users flows, this is not necessary. On the other hand: maybe someone imports this data. Then the data might not be there. Safety first...

Generate full name user flow. Triggre no-code web app builder.

Step 4: create the automation flow

The automation flow starts when either name property changes:

Edit triggre. Triggre no-code web app builder.

The automation flow triggers the flow part:

Automation flow. Triggre no-code web app builder.