Solved
Is it possible to make the answer entry boxes auto-expand when the entered numbers are too big?
I have this problem for question type Constant sum. I managed to increase the answer boxes using CSS in the html view, but it would be way cooler if the boxes would automatically expand when someone enters larger numbers.
Is there a way to do this using JavaScript?
I also want to automatically display thousands separators, so that it is easier to check large numbers.
Cheers,
Patrick
Best answer by TomG
> @patrick said:
> Hi Tom,
>
> thanks for the reply. I managed to add the js to the question but failed adding the script to the header.
> I added it in the 'Look & Feel' - 'Advanced' - 'Header' section like this:
> <script src="https://github.com/nosir/cleave.js"></script>
>
> I get the error 'Cleave is not defined'
>
> Could you help me out again?
>
> Cheers,
> Patrick
You can't load it directly from github. You can load it from jsDelivr CDN.
View originalLeave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.