ocoke/CranSurvey

Validate the format of the answer

Closed this issue · 3 comments

ocoke commented
Validate the format of the answer
ocoke commented
ocoke commented
ocoke commented
"types": {
  "short_answer": "Short Answer",
  "paragraph": "Paragraph",
  "multiple": "Multiple Choice",
  "checkboxes": "Checkboxes",
  "dropdown": "Dropdown",
  "file": "File Upload",
  "linear": "Linear Scale",
  "date": "Date",
  "time": "Time"
},
"validate": {
  "short_answer": [
    "[n1]:[n2]", // at least [n1] characters and up to [n2] characters.
  ],
  "paragraph": [
    "[n1]:[n2]", // at least [n1] characters and up to [n2] characters.
  ]
}