- Posts: 10611
- Thank you received: 3691
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Another disable "next" button question
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
9 years 6 days ago #118234
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Another disable "next" button question
Yes, numerics also use text type inputs.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: samarta
The topic has been locked.
- samarta
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 1
9 years 6 days ago #118237
by samarta
Replied by samarta on topic Another disable "next" button question
Thank you very much.
The topic has been locked.
- samarta
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 1
9 years 6 days ago #118242
by samarta
Replied by samarta on topic Another disable "next" button question
Hi,
Can get this stuff work.
I made code simplier and still does not work
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#movenextbtn').hide();
if($('#answer858668X1963X50568').val()>5){
$('#movenextbtn').show();
}
});
</script>
I introuced this code on the source of a question of group (1964) to see if the problem was in putting the source of the same group.
I can't get this working.
I appreciate any help.
I've tried also to if($('#answer858668X1963X50568').val()>5') but the last ' does not closes any previous '
Thanks
João
Can get this stuff work.
I made code simplier and still does not work
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('#movenextbtn').hide();
if($('#answer858668X1963X50568').val()>5){
$('#movenextbtn').show();
}
});
</script>
I introuced this code on the source of a question of group (1964) to see if the problem was in putting the source of the same group.
I can't get this working.
I appreciate any help.
I've tried also to if($('#answer858668X1963X50568').val()>5') but the last ' does not closes any previous '
Thanks
João
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1223
- Thank you received: 351
9 years 6 days ago #118243
by Ben_V
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Replied by Ben_V on topic Another disable "next" button question
I don't know the software version you are using, but you can maybe try a mix
JS/EM
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3691
9 years 6 days ago #118244
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Another disable "next" button question
Do you have the correct identifier for the input ('#answer858668X1963X50568')?
Can you activate a test survey?
.
Can you activate a test survey?
.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Ben_V
- Offline
- Platinum Member
Less
More
- Posts: 1223
- Thank you received: 351
9 years 6 days ago #118245
by Ben_V
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Replied by Ben_V on topic Another disable "next" button question
Sometimes I feel a kind of {nostalgia}...tpartner wrote: Do you have the correct identifier for the input ('#answer858668X1963X50568')?
Benoît
EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
- samarta
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 1
9 years 5 days ago #118260
by samarta
Replied by samarta on topic Another disable "next" button question
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3691
9 years 5 days ago #118261
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Another disable "next" button question
Oh, I see what you're doing now.
You'll need a listener on that "Age" input. Also we can automatically detect the input so you won't need to modify the SGQA for different surveys.
Place this in the source of the "Age" question:
You'll need a listener on that "Age" input. Also we can automatically detect the input so you won't need to modify the SGQA for different surveys.
Place this in the source of the "Age" question:
Code:
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); $('#movenextbtn').hide(); // Check the initial value of the age question if($('input.text', thisQuestion).val() != '' && $('input.text', thisQuestion).val() < 18){ $('#movenextbtn').show(); } // A listener on the age question $('input.text', thisQuestion).on('keyup change paste', function() { setTimeout(function() { if($('input.text', thisQuestion).val() != '' && $('input.text', thisQuestion).val() < 18){ $('#movenextbtn').show(); } else { $('#movenextbtn').hide(); } }, 100); }); }); </script>
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: samarta
The topic has been locked.
- samarta
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 1
9 years 5 days ago #118265
by samarta
Replied by samarta on topic Another disable "next" button question
Hi:
This is still not working im my production system (LimeSurvey Version 2.00+ Build 130406)
But I have a testing system with LimeSurvey Version 2.05+ Build 141003, and THERE it works fine.
I have to upgrade my production system.
Thank you, once again.
João
This is still not working im my production system (LimeSurvey Version 2.00+ Build 130406)
But I have a testing system with LimeSurvey Version 2.05+ Build 141003, and THERE it works fine.
I have to upgrade my production system.
Thank you, once again.
João
The topic has been locked.