Check out the LimeSurvey source code on GitHub!

"Please check the format of your answer" text imbedded into question

More
4 years 5 months ago #85046 by nessajk
Hi there,

I have a survey question with a "numerical input" question type. I want respondents to only be able to enter a number between 0-30. My colleague entered the validation code /^([0-9]|[12][0-9]|30)$/ and this does achieve the goal of only allowing a 0-30 entry. Unfortunately, it also embeds the text "Please check the format of your answer" into the question itself, which I don't want. Also, the code doesn't work when there is a relevance equation.

I can't find any way to remove that or another code to use that accomplishes the same. I had hoped that setting the Maximum Value in the advanced option settings would prevent answers over 30, but it does not.

Is there some way to get that text out? A different validation code to use?

Thanks!
Vanessa
Version 1.92+ Build 120501

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form