While you can easily remove the “Resume later” button from your Limesurvey template by de-activating the “Participant may save and resume later?” feature at “General Settings” -> “Notification & data management” of your survey, removing the “Exit and clear survey” button isn’t possible this way. So what to do?
There are two solutions, both require editing the current template so make sure you have sufficient rights for this. And of course, creating a backup first never hurts 🙂
Using CSS to remove the button
At the Limesurvey template editor select the “template.css” file and at the end add this CSS code to hide the button:
#limesurvey .clearall { Â Â display: none; }
For testing we used the <commercial_mode_on>beautiful Limesurvey template “Janus” which you can download here</commercial_mode_off>. This is how the buttons look like before the above adjustment:
…and with the hidden button the result is:
Removing the button placeholder from template code
The solution we recommend to use is to just remove the button placeholder from the template code. While hiding the button using CSS can cause side-effects and users can still use it when setting the browser to display hidden elements, simply removing the code from the template also does the trick.
To do so go to the Limesurvey template editor and at the “Standard files” section select the “navigator.pstpl” file. That’s where we have placed the related code for all templates from our shop.
You should see the following code at which you can simply remove the {CLEARALL} placeholder:
<div id="navigator" class="clearfix"> Â Â <div id="left"> Â Â Â {SAVE} Â Â </div> Â Â <div id="right"> Â Â Â {CLEARALL} Â Â </div> Â Â <div id="middle"> Â Â Â {NAVIGATOR} Â Â </div> </div>
Alternatively, you can comment out the placeholder so that the related code line reads:
<!-- {CLEARALL}Â -->
If the above doesn’t work for you and you need further help with adjusting your Limesurvey template just drop us a note.