Welcome, Guest
Username: Password: Remember me

TOPIC: Regular expressions on multiple short text

Regular expressions on multiple short text 2 years 4 months ago #70965

  • eadamuk
  • eadamuk's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
Hi,

I'm using a multiple short text input to collect various phone numbers a participant might have. Is there a way to apply validation to each of these to check they are a phone number?

I can find help on applying a regular expression to a single text box, but nothing for multiple.

If I am collecting emails in the same multiple text box, is there a way to check both separately?

Thanks,
Adam
The administrator has disabled public write access.

Re: Regular expressions on multiple short text 2 years 4 months ago #71045

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 81
  • Karma: 36
eadamuk-

I haven't tested this in 1.91+, but that feature does work in 1.92RC1. There is a sample survey that checks for valid email addresses (using regular expression filters) in multiple short text. Currently, the whole question fails the validation checks (so you see a popup warning) if any of the entries is non-empty and fails the validation. Ultimately, the goal is to highlight exactly which sub-questions fail validation).

/Tom
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.103 seconds
Donation Image