Display the "TOKEN" in token page

More
1 month 3 weeks 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

Please Log in to join the conversation.

LimeSurvey Partners
More
1 month 3 weeks ago - 1 month 3 weeks ago #203675 by tpartner
Copy a core template and add this to the end of template.js:

$(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.
Official LimeSurvey Partner - partnersurveys.com
Last edit: 1 month 3 weeks ago by tpartner. Reason: Bug fix

Please Log in to join the conversation.

More
1 month 3 weeks 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
Attachments:

Please Log in to join the conversation.

More
1 month 3 weeks 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.
Official LimeSurvey Partner - partnersurveys.com

Please Log in to join the conversation.

More
1 month 2 weeks ago #203963 by kevinleung
Hi tpartner, Thank you very much!! It works.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now