How do I get rid of the "exit and clear survey" button?

More
3 years 6 months ago #158989 by manasa
Hi Tony,

I am using 2.67.3+170728 version and removing the {CLEARALL} text in the editor and adding the above code to the template.css did not work. I notice that the button is disabled but it is still visible. Can you help me with hiding or removing this button?

Thanks,
Manasa
The topic has been locked.
More
3 years 6 months ago #158992 by DenisChenu
Look at startpage CLEARALL_LINK if i remind.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.
The following user(s) said Thank You: manasa
The topic has been locked.
More
3 years 6 months ago #158994 by manasa
That worked! Thanks.
The topic has been locked.
More
3 years 6 months ago #158999 by amitsharma
Thanks for this information. It's work out

My Name is Amit Sharma. I love to reading AndWriting Stories. I have two young children ashu and Manu. Some people also called me as the Love Marriage Specialist.
The topic has been locked.
More
2 years 7 months ago #173349 by purchased
Does anyone know how to do this with a 3.x theme?

I tried the following without success:

In custom.css I added...

.clearall {
display: none;
}

which didn't work. I also tried...

#clearallbtnlink {
display: none;
}

and

.clearallbtnlink {
display: none;
}

without success.

Finally, on the Welcome screen in nav_bar.twig I tried to comment out:

{{ include('./subviews/navigation/clearall_links.twig') }}

But that only shifted the "Exit and clear survey" over a few spaces.

Does anyone have a suggestion?
The topic has been locked.
More
2 years 7 months ago #173350 by Joffm
Hi,
in 3.14.5.
I also commented out in nav-bar.twig
{#      
            {{ include('./subviews/navigation/save_links.twig') }}
            {{ include('./subviews/navigation/clearall_links.twig') }}
#}
and both are gone.

Did you comment out correctly "curly bracket + hashtag"?

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: medhat, markusd1984
The topic has been locked.
More
2 years 7 months ago #173356 by purchased
Ah, thank you. Works perfect! I was not using the correct way of commenting out and was attempted to remove the "clearall" row.
The following user(s) said Thank You: tpartner
The topic has been locked.
More
2 years 4 months ago #177751 by aduer1
I'm trying to do the same thing, but using LimeSurvey version 3.5.4+180320 and the bootswatch theme, I do not find nav-bar.twig in the template editor (selecting either the Question or the Welcome screen). For the Welcome screen, I only have the following twigs:

layout_global.twig
mainrow.twig
outerframe.twig
firstpage.twig
welcome.twig
warnings.twig
no_js_alert.twig
privacy.twig

I searched for clearall in all these files, but could not find it. Can anyone give me a hint how I can get then rid of the "exit and clear survey" link? Many thanks in advance.
The topic has been locked.
More
1 year 2 months ago #192923 by anilchopracmr
Hi,
The above process gets rid of the exit and clear survey button altogether. But what if I only want to remove it from the Welcome page of a survey? After all, when a person actually starts to participate, then there are no answers to clear.
The topic has been locked.
More
1 year 2 months ago #192927 by tpartner
Extend your theme, edit welcome.twig, adding this at the end:

<style type="text/css">
	.ls-link-clearall {
		display: none !important;
	}
</style>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
The topic has been locked.
More
1 year 2 months ago #192936 by anilchopracmr
Hi,
I'm using Limesurvey 2.5, so I couldn't find the welcome.twig file anywhere. I could only find welcome.pstpl in the template editor. I anyways added the code you mentioned at the end of that file, but it didn't work:-(

Can you please help me?
The topic has been locked.
More
1 year 2 months ago #192937 by Joffm
What exactly is 2.5?

Is it one of the version of the 2.50/2.73 branch?
Or 2.05/2.06/2.6.x?

In older versions the id was different.
It was
#clearallbtnlink instead of .ls-link-clearall.

So:
#clearallbtnlink {
	display: none;
}<
Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
1 year 2 months ago #192938 by anilchopracmr
hi, the exact version is Version 2.73.0+171219. Sorry my bad.It's not 2.5.
The topic has been locked.
More
1 year 2 months ago #192942 by Joffm
add it to welcome.pstpl

<style type="text/css">
	#clearallbtnlink {
		display: none !important;
	}
</style>

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Start now!

Just create your account and start using Limesurvey today.

Register now