The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Bienvenido, Invitado
Nombre de Usuario: Contraseña: Recordarme
  • Página:
  • 1

TEMA: Regular expressions on multiple short text

Regular expressions on multiple short text hace 1 año 5 meses #70965

  • eadamuk
  • Avatar de eadamuk
  • DESCONECTADO
  • Fresh Lemon
  • Mensajes: 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
El administrador ha desactivado la escritura pública.

Re: Regular expressions on multiple short text hace 1 año 5 meses #71045

  • TMSWhite
  • Avatar de TMSWhite
  • DESCONECTADO
  • LimeSurvey Team
  • Mensajes: 751
  • Gracias recibidas 77
  • Karma: 33
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
El administrador ha desactivado la escritura pública.
  • Página:
  • 1
Moderadores: DenisChenu, ITEd
Tiempo de carga de la página: 0.186 segundos
Donation Image