From 9f2deffb53bae8910a2d2e5589e10e9a8413673b Mon Sep 17 00:00:00 2001 From: TEC Date: Mon, 17 Oct 2022 21:39:13 +0800 Subject: [PATCH] Questions: years should be Integer not any Number --- config/survey.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/survey.jl b/config/survey.jl index 0f3f205..a24e697 100644 --- a/config/survey.jl +++ b/config/survey.jl @@ -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. Suspiciously advanced…"