Hide Next button but only on some pages

More
8 months 3 days ago - 8 months 3 days ago #160797 by alimeaday
alimeaday created the topic: Hide Next button but only on some pages
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: 8 months 3 days ago by alimeaday.

Please Log in or Create an account to join the conversation.

More
8 months 3 days ago - 8 months 3 days ago #160799 by Joffm
Joffm replied the topic: Hide Next button but only on some pages
Hello,
I entered this in the sourcecode of the question(s):
<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: 8 months 3 days ago by Joffm.

Please Log in or Create an account to join the conversation.

More
5 months 1 week ago #164166 by tbednall
tbednall replied the 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

Please Log in or Create an account to join the conversation.

More
5 months 6 days ago #164169 by Joffm
Joffm replied the 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

Please Log in or Create an account to join the conversation.

More
1 week 4 days ago - 1 week 4 days ago #171080 by laocoon
laocoon replied the topic: Hide Next button but only on some pages
Hello,
i want to hide the "previous"-Button and tried the following:
<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: 1 week 4 days ago by laocoon.

Please Log in or Create an account to join the conversation.

More
1 week 4 days ago #171082 by LouisGac
LouisGac replied the topic: Hide Next button but only on some pages
as said in custom.js, use:
$(document).on('ready pjax:scriptcomplete',function(){
The following user(s) said Thank You: laocoon

Please Log in or Create an account to join the conversation.

More
1 week 4 days ago #171083 by laocoon
laocoon replied the 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.

Please Log in or Create an account to join the conversation.

More
1 week 4 days ago #171087 by laocoon
laocoon replied the topic: Hide Next button but only on some pages
The following works:
<script>
$(document).on('ready pjax:scriptcomplete',function(){
$('#ls-button-previous').hide();
});
</script>

Thank you
The following user(s) said Thank You: LouisGac

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!