Categories
Advanced Web Components

Web Component – Merge content of multiple fields into a new field (ConcatFields.vue)

This web component is used to gather values from multiple fields into a new joint field. The maximum limit for number of fields that can merge is 10. If a field is specified in the concat value but not sent as field, then the value will not be replaced.

Example usage, how to declare in your form as “Custom HTML“:

<concat-fields concat="Kommunen är {kommun} och datumet är {datum} och adressen är {adress}, och ett dolt fält med värde {dolt}" field1="kommun" field2="datum" field3="adress" field4="dolt" setfield="rubrik"></concat-fields>

Example:

https://demo.simpliform.se/forms/n2YM1kzov74JPOeZzlHY

Other web components that are available for your forms are: