Web Component – Sets textfield or calendar to todays date (TodaysDate.Vue)

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>


Other available web components to equip your forms with:

Was this article helpful?
0 out of 0 found this helpful


Article is closed for comments.