Skip to main content
All CollectionsFAQsBuilding πŸ‘·β€β™‚οΈ
How to set the default value of the time component
How to set the default value of the time component
Updated over 10 months ago

The time component is great for providing a user friendly method of capturing time. To set that default value of the time component to the current time simply follow the steps below:

  1. Drag and drop a time component into your form or open the setting for an existing time component

  2. Under the data tab scroll down to the "Custom Default Value" option and insert the following JavaScript code.

value = moment().format('HH:mm:ss') 
Did this answer your question?