Welcome to the LimeSurvey Community Forum

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

Enable return to the previous page only for one question

  • jacob76
  • jacob76's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 1 week ago - 3 months 1 week ago #254834 by jacob76
Please help us help you and fill where relevant:
Your LimeSurvey version:  LimeSurvey Community Edition   Version 5.6.7+230222
Own server or LimeSurvey hosting: Own server
Survey theme/template: fruity
==================
Hi everyone,

I have (and have to) disabled the option to return to the previous page for all questions by default when participants answer the questions, but I want to enable it once only for a specific question, say G01Q02. Is it possible? 

Unfortunately, I did not find any similar questions or solutions online. 

Thank you very much for your kind help in advance! 
 
Last edit: 3 months 1 week ago by jacob76.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 1 week ago #254835 by Joffm
Allow it, but hide the back button where wanted
E.g.
Code:
<style type="text/css">
#ls-button-previous {
    display: none;
}
</style>

Or hide it generally by adding this to the "custom.css" and show it in this one question.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • jacob76
  • jacob76's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 5 days ago #254847 by jacob76
Thank you so much!!!

Please Log in to join the conversation.

  • jacob76
  • jacob76's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 3 days ago #254933 by jacob76
Thank you very much once again! Sorry, unfortunately, this solution did not work out in my Limesurvey version. If I allow the "return button" for all of them, I do not have the "hide the back button" where wanted. 

If hide it generally by adding your code to the "custom.css" and show it in this one question. I have only so called "CSS class(es)", which did not work out by this code. 

I was wondering if I did anything not correctly?

 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 months 3 days ago - 3 months 3 days ago #254935 by Joffm

If I allow the "return button" for all of them, I do not have the "hide the back button" where wanted. 

Did you insert the shown css snippet in all questions where you want to hide?

If hide it generally by adding your code to the "custom.css" and show it in this one question. I have only so called "CSS class(es)", which did not work out by this code. 

Here you have to show it by javascript, like
Code:
<script type="text/javascript" charset="utf-8">
  $(document).ready(function(){
    $('#ls-button-previous').show();
  });
</script>


css classes is something different.
But you can do this.
You define a new css class "no-prev" (like "no previous")
In your "custom.css" add
Code:
.no-prev #ls-button-previous {
    display: none;
}

Now you enter this class in all questions where you want to hide the button

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 months 3 days ago by Joffm.

Please Log in to join the conversation.

  • jacob76
  • jacob76's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 months 2 days ago #254954 by jacob76
Thanks a lot!

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose