Creates a date picker widget, allowing the user to select a date / time. The value returned is a MYSQL-compatible datetime string, in the UTC timezone. When an end-user submits a date, it will be converted from their local timezone to UTC.
dataColumn
Sets the data column
The datacolumn links the form item to a key used when getting or saving from a component (as defined by the parent form).
disableDays
string
Specify a list of 3 character days (comma separated) to disable
disabledays="mon,wed" - Disables Monday and Wednesday disabledays="fri" - Disables Friday
disableWeekends
bool
Whether or not to select a whole week
disabled
bool
Disables the input
focusOnLoad
bool
If true, this control will attempt to focus itself after the page has loaded. Note that only one element may be focused on the page at a time. Default = false.
hasTime
bool
Whether or not the date picker has a time part (HH:SS PM/AM)
height
Sets the height of the element. The default units are pixels. include the percentage symbol % to user percentage values.
id
string
(Required) Most form items need a unique id so that they can submit data to the server. No two form items may have the same id. For situations where multiple form items submit to the same field, see the
name attribute. Id's that begin with
contact_ will automatically save Contact information to the Contact database as long as the user has entered enough identifying information (ideally Name and Email). Check the
Contact Fields page for correct field names.
name
string
Sets the name of the form item. Most of the time, the id attribute will suffice. However with form items that post multiple values into an array, each item will need to have the same name, followed by []. For example three controls with name="data[]", will all post into 'data'.
Radio buttons belonging to the same group will have to share the same name.
showWrapping
bool
Whether or not the date picker shows the days wrapping from the current month
validations
string
Sets the validations to be applied to the value of the form item
Eg: validations="mandatory"
valueDefaultNow
bool
Whether or not to default the value to the current time
valueMin
string
Is there a max limit?
Accepted values: yyyy-dd-mm, today
width
Sets the width of the element. The default units are pixels. include the percentage symbol % to user percentage values.