Concatenate 2 fields with Save Data in one field

Concatenate two form fields into one database field using ChronoForms.

Overview

The user needed to combine values from two separate form fields into a single database column during data saving.
Use the Data Overrides option in the Save Data action with the syntax {data:field1}{data:field2}, or alternatively, use a PHP action before saving to merge the values and assign them to the target field.

Answered
ChronoForms v6
Jo JoCo 08 Apr, 2021
Dear all,

is it possible to concatenate 2 fields in the Save Data in a form chronoforms v6.
For instance to save the form-fields First name and Last name in a database field Name.
Can i use the option "Data overrides" and what should be the syntax of that concatenation string.

Regards , JoCo
Co Colnem 09 Apr, 2021
Answer
Hi... Try this:
value: {data:field1}{data:field2}
Jo JoCo 09 Apr, 2021
Thanks, i will try this also.
I found already is simple solution.
I placed an php action before the save date and in that php action i concatenated the two values and then i write that value back to the appropriate field.
Post a Reply