- Posts: 61
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Y-scale | subq1 | a) |
subq2 | b) | |
X-scale | subq1 | City (wanted: text) |
subq2 | inhabitants (wanted: numbers) |
<script type="text/javascript" src="{TEMPLATEURL}inputmask.js"></script> <script type="text/javascript" src="{TEMPLATEURL}jquery.inputmask.js"></script> <script type="text/javascript" src="{TEMPLATEURL}inputmask.numeric.extensions.js"></script>
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // Assign column-specific classes $('table.subquestions-list tr', thisQuestion).each(function(i){ $('> *', this).each(function(i){ $(this).addClass('column-'+i+''); }); }); // Place an "Integer" mask on the column-2 inputs $('table.subquestions-list .column-2 input[type="text"]', thisQuestion).inputmask('integer', { allowMinus: false, allowPlus: false, 'max': 999, 'min': 0, autoUnmask: true }); }); </script>
I think with the default config settings, you should be able to upload .js files. What version of LimeSurvey are you using?these filenames are "not allowed to be uploaded
Yes, this is the default config setting in 2.05 and 2.06:If I got it right, there was a setting which can be set in config files to weaking the filetypes filter for broader uploads.
$config['allowedtemplateuploads'] = 'gif,ico,jpg,png,css,js,map,json,eot,svg,ttf,woff,txt,md'; // File types allowed to be uploaded in the templates section.