Welcome to the LimeSurvey Community Forum

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

Preventing numerical inputs

  • anuragkh1711
  • anuragkh1711's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #146014 by anuragkh1711
Preventing numerical inputs was created by anuragkh1711
Is there a way to avoid numerical inputs inside "Short Text filed"? I want my users to insert only alphabets in short free text.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago - 7 years 3 months ago #146020 by DenisChenu
Replied by DenisChenu on topic Preventing numerical inputs
manual.limesurvey.org/Using_regular_expressions#Text_validation no solution here

But /^[a-zA-Z]+$/ work in 'Validation'

You can show the help tip you want with manual.limesurvey.org/Question_type_-_Sh...28em_validation_q.29 and
Code:
is_empty(this.NAOK) or  regexMatch("/^[a-zA-Z]+$/", this.NAOK)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 7 years 3 months ago by DenisChenu.
The following user(s) said Thank You: anuragkh1711
The topic has been locked.
  • anuragkh1711
  • anuragkh1711's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 months ago #146229 by anuragkh1711
Replied by anuragkh1711 on topic Preventing numerical inputs
Worked perfectly fine. Thank You!!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose