- Posts: 29
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Modify Label
- leblancoj
- Topic Author
- Offline
- Junior Member
I'm trying to edit some tags, but I have no idea if I'm on the right track, I am in the option of Survey participants.
Can I change the "Password(Contraseña)" tag? To say "RUT",
My intention is:
Have a text field where the user can add some identifier number and is validated in the database to enter the survey, as there is already a default "password" I would like to change the label and customize it, but I do not succeed, I wanted to edit The source code but I did not get the file to do it.
Can I do this?
- holch
- Offline
- LimeSurvey Community Team
- Posts: 11639
- Thank you received: 2737
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
- leblancoj
- Topic Author
- Offline
- Junior Member
- Posts: 29
- Thank you received: 0
Can you do it from the LimeSurvery administration or do you need to alter the source code?
- holch
- Offline
- LimeSurvey Community Team
- Posts: 11639
- Thank you received: 2737
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10099
- Thank you received: 3589
$(document).ready(function() { if($('#tokenform').length > 0) { $('label[for="token"]').text('New Label'); } });
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- leblancoj
- Topic Author
- Offline
- Junior Member
- Posts: 29
- Thank you received: 0
- leblancoj
- Topic Author
- Offline
- Junior Member
- Posts: 29
- Thank you received: 0
- leblancoj
- Topic Author
- Offline
- Junior Member
- Posts: 29
- Thank you received: 0
I want to change the field where the "password" is entered to enter alphanumeric characters and remove the ************ asterisks that hide what one writes
www.limesurvey.org/media/kunena/attachme...0-11-12-13-14-15.png
- Ben_V
- Offline
- Platinum Member
- Posts: 1128
- Thank you received: 329
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:
$(document).ready(function() { if ($('#tokenform').length > 0) { $('label[for="token"]').text('RUT'); $('input.text').attr("type","text").removeAttr('type'); } });
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
- leblancoj
- Topic Author
- Offline
- Junior Member
- Posts: 29
- Thank you received: 0
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'); } });
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
I set the default custom template on my menu but nothing!
- Ben_V
- Offline
- Platinum Member
- Posts: 1128
- Thank you received: 329
<script> $(document).ready(function() { if ($('#tokenform').length > 0) { $('label[for="token"]').text('RUT'); $('input.text').attr("type","text").removeAttr('type'); } }); </script>
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10099
- Thank you received: 3589
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
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.