Welcome, Guest
Username: Password: Remember me

TOPIC: Custom error message for regexp-based validation

Custom error message for regexp-based validation 3 years 2 weeks ago #66847

  • wabrit
  • wabrit's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
I know how to validate an answer based on a regular expression. But I also want to change the validation error message from "This question must be answered correctly." to something more helpful.

Is that possible without dropping the whole validation thing into script?
The administrator has disabled public write access.

Re: Custom error message for regexp-based validation 3 years 2 weeks ago #66848

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5331
  • Thank you received: 296
  • Karma: 249
This text string can be changed by editing the translation.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: Custom error message for regexp-based validation 3 years 2 weeks ago #66849

  • nico_8it
  • nico_8it's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 24
  • Thank you received: 1
  • Karma: 1
you should change the file en.po that is in

limesurvey/locale/en/LC_MESSAGES
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.113 seconds
Donation Image