Date Picker
Last updated
Was this helpful?
Last updated
Was this helpful?
Date Picker generates a jquery date control with some tweaks. Select a date from the calendar control or enter it using the keyboard.
Date
This Date will be shown in the date picker when the field loads. Assign a string in the format yyyy/MM/dd
, a JavaScript date or Day.js date to this property.
Hint
Some placeholder text that will show when the date picker is empty.
Read-Only
Set to True if you want the control to display as read-only (value can't be changed) on the page.
Show Current Date
Display the current date by default
Validations
List of validations to apply to the input
Visible
Set to False if you don't want this control to render on the page and be visible to the user.
Example:
To display a DatePicker control containing a specific date value retrieved by a SQL query:
Use the Date property of the DatePicker inside of a script to return the currently selected date as a Day.js object.
Change
An event that triggers when another date is selected.
Event Input Parameters:
PreviousDate The date that was selected before selecting the new date.
SelectedDate The newly selected date.
Use an appropriate , e.g. Load (page) or Click (button) to which a action can be added.
Add a action to assign the date value from the query to the DatePicker's Date property.