How to Change in Question id expression.

More
9 months 3 weeks ago #148631 by siddhantwankar
siddhantwankar created the topic: How to Change in Question id expression.
Hello,

In lime survey when we add a question it will ask for unique question code ie in the form of Alphabets and Numeric value. The regular expression for that question code pattern is ^[a-zA-Z][a-zA-Z0-9]*$. I want to use the regular expression to access numerical value only.

Where do i change in code to accept only numeric value in Question code?

Thanks & Regards
Siddhant Wankar

Please Log in to join the conversation.

More
9 months 3 weeks ago #148648 by fvanderstarre
fvanderstarre replied the topic: How to Change in Question id expression.
Don't go there! It doesn't make sense to want to change such a basic feature (IMHO)....
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

More
9 months 3 weeks ago #148678 by siddhantwankar
siddhantwankar replied the topic: How to Change in Question id expression.
OK,
Yes, I know it doesn't make any sense but sorry, its our client requirnment so I need to change in the code.
For that I found the files to be change i.e. _tabs.php, Question.php, surveyadmin.php. I use /^[0-9]*$/ this to accept only numeric value.

Thanks & Regards.
Siddhant Wankar.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!