Check out the LimeSurvey source code on GitHub!

Disappearing Previous and Next buttons

More
3 years 7 months ago #96558 by alexanderjlee
Version 1.92+
Build 120919
Browser: Mozilla Firefox

Problem: When I "Test this survey", the "Next" and "Previous" buttons disappear when I get to the sixth group of questions.

PS. I can't switch to the newest version because errors have occurred while importing all of the question groups in attempts to switch to a newer version.

Please Log in to join the conversation.

More
3 years 7 months ago #96565 by tpartner
Do you have any JavaScript applied to the survey?

Have you tested with the default template.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
3 years 7 months ago #96628 by alexanderjlee
I tested with the default template and I still have the same issue with the next and previous buttons not showing up on some pages. I've also noticed that when I leave a mandatory question blank and click next, the page refreshes and the next and previous buttons disappear as well.

The only JavaScript applied to the the survey is as follows:

<!-- INPUT NAMES -->

<input type='hidden' name='fieldnames' value='58123X1511X25939|58123X1511X25940DM11A1|58123X1511X25940DM11A2|58123X1511X25940DM11A3|58123X1511X25940DM11A4|58123X1511X25940DM11A5|58123X1511X25940DM11A6|58123X1511X25940DM11A7|58123X1511X25940DM11A8|58123X1511X25940DM11A9|58123X1511X25940DM1110|58123X1511X25951|58123X1511X56626DM12A1|58123X1511X56626DM12A2|58123X1511X56626DM12A3|58123X1511X56626DM12A4|58123X1511X56626DM12A5|58123X1511X56626DM12A6|58123X1511X56626DM12A7|58123X1511X56626DM12A8|58123X1511X56626DM12A9|58123X1511X56626DM12A10' id='fieldnames' />
<script type='text/javascript'>
<!--
// register the standard (last) onsubmit handler *first*
document.limesurvey.onsubmit = std_onsubmit_handler;
-->
</script><table class="survey-header-table">
<tr>
<td class="survey-description">
<h2>SAAGA</h2><br />
<p>This is the Lime implementaiton of the SAAGA</p>
</td>

</tr>
<tr>
<td class="graph">
<script type="text/javascript">
$(function() {
$("#progressbar").progressbar({
value: 1
});
});
</script>

<!-- JAVASCRIPT FOR CONDITIONAL QUESTIONS -->
<script type='text/javascript'>
<!--
var LEMradix='.';
var numRegex = new RegExp('[^-' + LEMradix + '0-9]','g');
var intRegex = new RegExp('[^-0-9]','g');
function fixnum_checkconditions(value, name, type, evt_type, intonly)
{
newval = new String(value);
if (typeof intonly !=='undefined' && intonly==1) {
newval = newval.replace(intRegex,'');
}
else {
newval = newval.replace(numRegex,'');
}
if (LEMradix === ',') {
newval = newval.split(',').join('.');
}
if (newval != '-' && newval != '.' && newval != '-.' && newval != parseFloat(newval)) {
newval = '';
}
displayVal = newval;
if (LEMradix === ',') {
displayVal = displayVal.split('.').join(',');
}
if (name.match(/other$/)) {
$('#answer'+name+'text').val(displayVal);
}
$('#answer'+name).val(displayVal);

if (typeof evt_type === 'undefined')
{
evt_type = 'onchange';
}
checkconditions(newval, name, type, evt_type);
}

function checkconditions(value, name, type, evt_type)
{
if (typeof evt_type === 'undefined')
{
evt_type = 'onchange';
}
if (type == 'radio' || type == 'select-one')
{
var hiddenformname='java'+name;
document.getElementById(hiddenformname).value=value;
}
else if (type == 'checkbox')
{
if (document.getElementById('answer'+name).checked)
{
$('#java'+name).val('Y');
} else
{
$('#java'+name).val('');
}
}
else if (type == 'text' && name.match(/other$/) && typeof document.getElementById('java'+name) !== 'undefined' && document.getElementById('java'+name) != null)
{
$('#java'+name).val(value);
}
ExprMgr_process_relevance_and_tailoring(evt_type,name,type);
}
// -->
</script>

Please Log in to join the conversation.

More
3 years 7 months ago #96632 by DenisChenu
Hello,

Set debug to 2 at config.php, and view memory allowed for your limesurvey installation.

Did you have access to webserver error log ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form