Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Character Limit for 'Other' Option

More
5 years 4 weeks ago - 5 years 4 weeks ago #200286 by reginab
Replied by reginab on topic Character Limit for 'Other' Option
Thanks for the reply - I've changed it to :

<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#question{q313_other} input[type="text"]').attr('maxlength', '4');
});
</script>

But no joy, it's still not working
Last edit: 5 years 4 weeks ago by reginab.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 weeks ago - 5 years 4 weeks ago #200287 by tpartner
Replied by tpartner on topic Character Limit for 'Other' Option
Change:
Code:
$('#question{q313_other} input[type="text"]')

To:
Code:
$('#question{QID} input[type="text"]')

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 years 4 weeks ago by tpartner.
The topic has been locked.
More
5 years 4 weeks ago #200288 by reginab
Replied by reginab on topic Character Limit for 'Other' Option
That fixed it, thanks a million :-)
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose