|
|
@ -836,13 +836,16 @@ enter a date. Depending on the browser's support for HTML5 forms, the input |
|
|
|
field may have a pop-out calendar from which the user can select a date. |
|
|
|
field may have a pop-out calendar from which the user can select a date. |
|
|
|
|
|
|
|
|
|
|
|
The date must be entered, and will be passed to the callback, in the form |
|
|
|
The date must be entered, and will be passed to the callback, in the form |
|
|
|
YYYY-MM-DD. |
|
|
|
`YYYY-MM-DD`. |
|
|
|
|
|
|
|
|
|
|
|
The `date` field type supports the following additional options: |
|
|
|
The `date` field type supports the following additional options: |
|
|
|
|
|
|
|
|
|
|
|
- **`min`**: The minimum allowed date (format: a string YYYY-MM-DD) |
|
|
|
- **`min`**: The minimum allowed date (format: a string `YYYY-MM-DD`) or |
|
|
|
- **`max`**: The maximum allowed date (format: a string YYYY-MM-DD) |
|
|
|
"`today`" for today. |
|
|
|
- **`default_value`**: The default value. |
|
|
|
- **`max`**: The maximum allowed date (format: a string `YYYY-MM-DD`) or |
|
|
|
|
|
|
|
"`today`" for today. |
|
|
|
|
|
|
|
- **`default_value`**: The default value (format: a string `YYYY-MM-DD`) or |
|
|
|
|
|
|
|
"`today`" for today. |
|
|
|
|
|
|
|
|
|
|
|
For example: |
|
|
|
For example: |
|
|
|
|
|
|
|
|
|
|
@ -858,6 +861,20 @@ For example: |
|
|
|
] |
|
|
|
] |
|
|
|
... |
|
|
|
... |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Must start today or in the future (Default value today): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
... |
|
|
|
|
|
|
|
"fields": [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"name": "startdate", |
|
|
|
|
|
|
|
"title": "Start date", |
|
|
|
|
|
|
|
"type": "date", |
|
|
|
|
|
|
|
"min": "today", |
|
|
|
|
|
|
|
"default_value": "today" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
... |
|
|
|
|
|
|
|
|
|
|
|
### <a name="field_types_radio">Radio</a> |
|
|
|
### <a name="field_types_radio">Radio</a> |
|
|
|
|
|
|
|
|
|
|
|
The `radio` field type lets the user pick one option from a list of options. |
|
|
|
The `radio` field type lets the user pick one option from a list of options. |
|
|
|