Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: validate phone number

validate phone number 4 years 3 months ago #80295

  • aficek
  • aficek's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 15
  • Karma: 0
i am pretty new to this and having a hard time figuring out how to validate a phone number answer. the question is, "what is your phone number?" the response is a numerical input field, the max is set to 10 characters. i want to be sure they enter a 10-digit number (no hyphens).

currently, if an invalid number is entered, it just disappears and the survey moves on without them knowing they didn't enter a valid number. i definitely don't want this to happen.

i have looked at the EM section of your manual but haven't been able to get this to work the way i'm hoping.

thank you in advance for your assistance! oh, i have version 1.92 if that matters.
The administrator has disabled public write access.

validate phone number 4 years 3 months ago #80296

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1805
  • Thank you received: 445
  • Karma: 111
Maybe you will find your solution here
Ben/
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.

validate phone number 4 years 3 months ago #80301

  • aficek
  • aficek's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 15
  • Karma: 0
thank you so much, ben! i hadn't found that part of the manual. this is helpful.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.176 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form