Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to Change in Question id expression.

  • siddhantwankar
  • siddhantwankar's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 1 month ago #148631 by siddhantwankar
How to Change in Question id expression. was created by siddhantwankar
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
The topic has been locked.
More
7 years 1 month ago #148648 by fvanderstarre
Replied by fvanderstarre on 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
The topic has been locked.
  • siddhantwankar
  • siddhantwankar's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 years 1 month ago #148678 by siddhantwankar
Replied by siddhantwankar on 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.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose