Single-line Input Type: Date

Attribute NameData TypeDescription

Value should be date

The type of input field. For single line text input, type must be date.
placeholder*string (100)Sample field value displayed to the user that describes the expected value of the input field.
name*string (50)A unique identifier for the field. On form submission, the value defined for this key will be available in the function associated with the form.
label*string (50)Describes the field display name.
hintstring (100)Provides a brief description of the field's purpose and the expected input.
valuetimestamp (100)Provide a default date as the field value. Expect Format: YYYY-MM-DD, for example: 2000-01-01
mandatorybooleanDefine if the field's requisite is mandatory or not.
Default value considered is true.


  "hint": "",
  "name": "",
  "label": "",
  "placeholder": "",
  "type": "date",
  "value": "",
  "mandatory":true //boolean,  default is set true

Code Sample

inputs = list();
  "hint": "Mention till when you'd require the access",
  "name": "dateinfo",
  "label": "Access required till",
  "placeholder": "12/12/2018",
  "type": "date",
  "value": "2018-12-12",
  "mandatory": true
form = {
  "type": "form",
  "title": "ZylCal Users",
  "hint": "Submit your details to early access to ZylTrix!",
  "name": "ID",
  "version": 1,
  "button_label": "Submit",
  "action": {
      "type": "invoke.function",
      "name": "userinfo"
  "inputs": inputs
return form;