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

TOPIC: character limit multiple choice with comments

character limit multiple choice with comments 4 years 9 months ago #68542

  • carlosanma
  • carlosanma's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 9
  • Thank you received: 1
  • Karma: 1
How to make the text of the multiple-choice questions with comments can be given a character limit and provide security, so that you can not do SQL Injection or limit the types of characters that can be used

thanks
The administrator has disabled public write access.

character limit multiple choice with comments 4 years 9 months ago #68545

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5984
  • Thank you received: 368
  • Karma: 260
There is no inbuild feature for limiting the number of characters.

SQL-injection won't be possible because input is sanitized before saving to the DB.

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.

character limit multiple choice with comments 4 years 9 months ago #68572

  • tpartner
  • tpartner's Avatar
  • Online
  • LimeSurvey Team
  • Posts: 6239
  • Thank you received: 1382
  • Karma: 539
Here is a workaround to apply masks to text inputs. The mask can be used to control max characters.

docs.limesurvey.org/Workarounds%3A+Manip...vey#Text_input_masks
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.282 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form