- Posts: 29
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
$(document).ready(function() { if($('#tokenform').length > 0) { $('label[for="token"]').text('New Label'); } });
leblancoj wrote: Add the JS code in template.js at the end but nothing happens I'm doing something wrong?
leblancoj wrote: I want to change the field where the "password" is entered to enter alphanumeric characters and remove the ************ asterisks that hide what one writes
$(document).ready(function() { if ($('#tokenform').length > 0) { $('label[for="token"]').text('RUT'); $('input.text').attr("type","text").removeAttr('type'); } });
Ben_V wrote:
leblancoj wrote: Add the JS code in template.js at the end but nothing happens I'm doing something wrong?
perhaps a browser cache issue... retry after clearing it
leblancoj wrote: I want to change the field where the "password" is entered to enter alphanumeric characters and remove the ************ asterisks that hide what one writes
adapting Tony's script:
Code:$(document).ready(function() { if ($('#tokenform').length > 0) { $('label[for="token"]').text('RUT'); $('input.text').attr("type","text").removeAttr('type'); } });
<script> $(document).ready(function() { if ($('#tokenform').length > 0) { $('label[for="token"]').text('RUT'); $('input.text').attr("type","text").removeAttr('type'); } }); </script>
In /application/config/config.php, set debug to 1 so all files are loaded directly, not via the assets manager.It does not work, save the JS at the end of the template.js as the image shows and still does not show any changes, clear the entire browser cache