SchemaToCode
NGX-SCHEMA-TO-CODE

Check box array allow you to choose multiple checkboxes from a group of checkboxes

"hobbies": {
  "dataType": "array",
  "inputeType": "checkbox",
  "label": "Interested in hobbies",
  "options": [
    { "desc": "Adventure", "val": "adv" },      // val must be string
    { "desc": "Music", "val": "muc"},
    { "desc": "Singing", "val": "sin"},
    { "desc": "Swimming", "val": "swm" }
  ],
}

You can add options in other ways also, see in 'select' documentation.

Request / Response obejct will be look like folling. While in display it will show description

"hobbies": ["muc", "swm"]

Related Topics:

validation