- Posts: 11
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
6 years 4 months ago - 6 years 4 months ago #160799
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Hide Next button but only on some pages
Hello,
I entered this in the sourcecode of the question(s):
Regards
Joffm
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.
- tbednall
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 2
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>
<script>
$(document).ready(function() {
$('#ls-button-submit').hide();
});
</script>
The following user(s) said Thank You: Joffm, laocoon
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
6 years 2 months ago #164169
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Hide Next button but only on some pages
Thanks, tbednall
for mentioning this change in Version 3.
Joffm
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.
- laocoon
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 1
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:
but this didn't work. Is it the wrong name of the button?
Thanks in advance!
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
- 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(){
$(document).on('ready pjax:scriptcomplete',function(){
The topic has been locked.
- laocoon
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 1
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.
<script>
$(document).on('ready pjax:scriptcomplete',function(){
$('#ls-move-previous-btn').hide();
});
</script>
still doesn't work.
The topic has been locked.
- laocoon
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 1
5 years 9 months ago #171087
by laocoon
Replied by laocoon on topic Hide Next button but only on some pages
The following works:
Thank you
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.