This web component will set the value of the specified fields (value1 to value5) to an empty string. The parameter linktext will be the name of the clickable URL, if it is not specified, it will be set to “Clear”.
Example usage, how to declare in your form as “Custom HTML“:
<reset-component value1="example1" value2="example2" linktext="Clear fields"></reset-component>
Example:
https://demo.simpliform.se/forms/ILUxb2Q2CJ0U0sZC7cyr
Other available web components to equip your forms with:
- SumFields.vue – Add multiple fields (example)
- Compare.Vue – Compare two fields, true or false (example)
- ConcatFields.vue – Merge content from multiple fields into a new field (example)
- Condition.Vue – Search value from field and write value to new field (example)
- HideButtons.Vue – Hide buttons (example)
- TodaysDate.Vue - Sets textfield or calendar to todays date (example)
0 Comments