Welcome to the LimeSurvey Community Forum

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

Display the "TOKEN" in token page

More
5 years 1 month ago #203655 by kevinleung
Hi All,

Is it possible to display the "TOKEN" in token page? (NOT showing "......")
Just like a normal text box.
I am using 2.6.4 version.
Thank you very much

Kevin
The topic has been locked.
More
5 years 1 month ago - 5 years 1 month ago #203675 by tpartner
Copy a core template and add this to the end of template.js:

Code:
$(document).ready(function() {
 
  if($('#tokenform #token').length > 0) {
    $('#token').after('<input class="'+$('#token').attr('class')+'" required="required" id="token" type="text" value="" name="token">');
    $('#token:first').remove();
  }
});

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 5 years 1 month ago by tpartner. Reason: Bug fix
The topic has been locked.
More
5 years 1 month ago #203722 by kevinleung
Hi tpartner,

Thank you for the help. But there are some issue...
It could display the number, but there are TOKEN box in everypage
So I have to type the token many times.....

Kevin
The topic has been locked.
More
5 years 1 month ago #203744 by tpartner
I have updated the code snippet.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
5 years 4 weeks ago #203963 by kevinleung
Hi tpartner, Thank you very much!! It works.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose