Questions: years should be Integer not any Number

This commit is contained in:
TEC 2022-10-17 21:39:13 +08:00
parent 9da51d0ad3
commit 9f2deffb53
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ the questions you see now will not necessarily be in the final survey.",
MultiSelect(:emacs_tasks,
"Which of the following activities do you use Emacs for?",
["Work", "Hobby projects", :other]),
NumberInput(:emacs_years,
IntegerInput(:emacs_years,
"How many years have you been using Emacs for?",
validators = v -> if v < 0
"Seriously? Are we supposed to believe you're just planning ahead?"
@ -258,7 +258,7 @@ the questions you see now will not necessarily be in the final survey.",
"I would like to, but cannot" => "Cannot",
:other])),
SurveyPart("Demographics (all questions are optional)",
NumberInput(:respondent_age,
IntegerInput(:respondent_age,
"How old are you?",
validators = n -> if n < 8
"My, you're advanced for you're age. <i>Suspiciously</i> advanced…"