
A simple web component that sets a Text field or a Date field to todays date when the form is opened.
To set a Text field or a Date field to todays date you need to name the Text field (thisone and thisone2 in the example) and then add a Custom HTML field and click the </> Source button and fill in the following code:
<todays-date setfield="thisone"></todays-date>
If you were to add a Date field to the same form as well, you need another Custom HTML field specifying the name of the Date field.
<todays-date setfield="thisone2"></todays-date>

Example:
https://dev.simpliform.se/forms/k0TP5QFIBNvvxKEku7yV
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)
- Reset.Vue – Reset/clear field (example)
0 Comments