Using WS Form PRO variables or conditional logic you can easily create a full name field that is automatically updated when a user enters their first or last name. This is useful if, for example, you have a third party system you need to push a full name field to but you still want to keep the first and last name fields separate for other purposes such as personalizing an email.
Using Variables
- Add text fields for the first and last name.
- Add a text field for the full name (you can also make this at hidden field if you wish).
- In the Default Value setting of the full name field, enter
#text(#field(1)) #text(#field(2))
where1
is the ID of the first name field and2
is the ID of the last name field. - Click Save & Close.
Using Conditional Logic
- Add text fields for the first and last name.
- Add a text field for the full name (you can also make this at hidden field if you wish).
- Click the Conditional Logic icon at the top of the layout editor. The Conditional Logic sidebar will open.
- Click the Add icon.
- Add the conditional logic as shown in the screenshot below, choosing the first, last and full name fields from your form.
- Click Save & Close.