hide resume later button on one page?

More
6 years 8 months ago #72587 by badronald
badronald created the topic: hide resume later button on one page?
Is there a way to hide the 'resume later' button on only 1 page?
I can do it for next and previous, but does not seem to work for resume later button.

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago - 4 years 2 months ago #72599 by DenisChenu
DenisChenu replied the topic: hide resume later button on one page?
Hello,

On a question source of this page:
<script>
$(function() {
   $('.saveall').hide();
});
</script>

For example.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 4 years 2 months ago by DenisChenu. Reason: fix code

Please Log in or Create an account to join the conversation.

More
3 weeks 6 days ago #173173 by laocoon
laocoon replied the topic: hide resume later button on one page?
should this code still work?
unfortunatley it doesn't work in my survey

Please Log in or Create an account to join the conversation.

More
3 weeks 6 days ago #173177 by tpartner
tpartner replied the topic: hide resume later button on one page?
How are we supposed to answer that without knowing any pertinent details like what you have tried and what version you are using?

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu

Please Log in or Create an account to join the conversation.

More
3 weeks 6 days ago #173178 by laocoon
laocoon replied the topic: hide resume later button on one page?
Sorry about that. I'm using Version 3.14.6+180821 and pasted the code above on one of my survey pages. But the resume-later button is still visible

Please Log in or Create an account to join the conversation.

More
3 weeks 6 days ago #173187 by tpartner
tpartner replied the topic: hide resume later button on one page?
Try this for LS 3.x:

<script type="text/javascript" charset="utf-8">
	$(document).on('ready pjax:complete',function()	{
		var linkAction = '"saveall":"saveall"'
		$(".navbar-action-link a[data-limesurvey-submit~='"+linkAction+"']").closest('li').remove();
	});
</script>

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: laocoon

Please Log in or Create an account to join the conversation.

More
3 weeks 6 days ago #173188 by laocoon
laocoon replied the topic: hide resume later button on one page?
thank you, works perfectly

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!