Welcome to the LimeSurvey Community Forum

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

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

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 5 months ago #144828 by DenisChenu

tpartner wrote: You're welcome.

In my opinion, the #clearallbtnlink element should not be rendered if the {CLEARALL} placeholder is not used. Please file a bug report.

in 3.0/next version:

{CLEARALL_LINK} don't have an ID : then can be added where you want and X times
{CLEARALL_LINK} work everywhere out of the box if javascript is activated
{CLEARALL_LINK} don't need {CLEARALL} to work out of the box
{CLEARALL_LINK} is hidden if javascript is not activated

The 2.5X system is broken : force {CLEARALL} for {CLEARALL_LINK} is a mistake, but allow {CLEARALL_LINK} without {CLEARALL} is a (good) featrure.

This need a manual update, not anything.
Denis
PS : {CLEARALL} work out of the box without js inside form, need js outside .
PS2: same for INDEX/SAVEALL etc .....

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 topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 5 months ago #144859 by holch
Hi Denis! Any idea when LS 3.0 might come out with the cleaned templates? I would need to start to adapt a template for a project, but I would like to spend my time on the next version rather on 2.5.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 5 months ago #144863 by DenisChenu
Don't know, not my decision.

About actual default template: easier than make a JS if CLEARALL are not present : remove CLEARALL_LINK from startpage.pstpl.

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 topic has been locked.
More
6 years 7 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.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 7 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
6 years 7 months ago #158994 by manasa
That worked! Thanks.
The topic has been locked.
More
6 years 7 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
5 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.
  • Joffm
  • Joffm's Avatar
  • Online
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 7 months ago #173350 by Joffm
Hi,
in 3.14.5.
I also commented out in nav-bar.twig
Code:
{#      
            {{ 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
5 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
5 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
4 years 3 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.

Lime-years ahead

Online-surveys for every purse and purpose