Welcome to the LimeSurvey Community Forum

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

Hide Next button but only on some pages

  • alimeaday
  • alimeaday's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago - 6 years 4 months ago #160797 by alimeaday
Hide Next button but only on some pages was created by alimeaday
Hello,

i have a survey where on some pages the info gets auto-submitted when the user clicks on an answer(so he does not have to click an additional button.)

Is it possible to hide the next button on those pages only?

Also the same question with pages that have a timer.

ty
Last edit: 6 years 4 months ago by alimeaday.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago - 6 years 4 months ago #160799 by Joffm
Replied by Joffm on topic Hide Next button but only on some pages
Hello,
I entered this in the sourcecode of the question(s):
Code:
<script> 
$(document).ready(function() {
   $('button#movenextbtn').hide();
 });  
</script>

Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 6 years 4 months ago by Joffm.
The topic has been locked.
More
6 years 2 months ago #164166 by tbednall
Replied by tbednall on topic Hide Next button but only on some pages
In LimeSurvey 3, this code doesn't seem to work. I tried the following, which does work:

<script>
$(document).ready(function() {
$('#ls-button-submit').hide();
});
</script>
The following user(s) said Thank You: Joffm, laocoon
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 2 months ago #164169 by Joffm
Replied by Joffm on topic Hide Next button but only on some pages
Thanks, tbednall

for mentioning this change in Version 3.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
5 years 9 months ago - 5 years 9 months ago #171080 by laocoon
Replied by laocoon on topic Hide Next button but only on some pages
Hello,
i want to hide the "previous"-Button and tried the following:
Code:
<script>
$(document).ready(function() {
$('#ls-move-previous-btn').hide();
});
</script>

but this didn't work. Is it the wrong name of the button?

Thanks in advance!
Last edit: 5 years 9 months ago by laocoon.
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
5 years 9 months ago #171082 by LouisGac
Replied by LouisGac on topic Hide Next button but only on some pages
as said in custom.js, use:
$(document).on('ready pjax:scriptcomplete',function(){
The topic has been locked.
More
5 years 9 months ago #171083 by laocoon
Replied by laocoon on topic Hide Next button but only on some pages
Thank you, but

<script>
$(document).on('ready pjax:scriptcomplete',function(){
$('#ls-move-previous-btn').hide();
});
</script>

still doesn't work.
The topic has been locked.
More
5 years 9 months ago #171087 by laocoon
Replied by laocoon on topic Hide Next button but only on some pages
The following works:
Code:
<script>
$(document).on('ready pjax:scriptcomplete',function(){
$('#ls-button-previous').hide();
});
</script>

Thank you
The following user(s) said Thank You: LouisGac
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose