Survey
359
en
gid
sid
group_name
group_order
description
language
randomization_group
grelevance
qid
parent_qid
sid
gid
type
title
question
preg
help
other
mandatory
question_order
language
scale_id
same_default
relevance
modulename
$(document).on('ready pjax:scriptcomplete',function(){
// A function to show subsequent rows of an array as options are checked
function expandingArray(qID) {
var thisQuestion = $('#question'+qID);
$('table.ls-answers', thisQuestion).hide();
// Delay to let the relevence be set
setTimeout(function(){
// Build an array of the question rows
var arrayRows = $('table.ls-answers tbody tr.radio-list:not(.ls-irrelevant)', thisQuestion);
// Initially hide all rows unless an input was previously checked
$(arrayRows).addClass('relevant-row').each(function(i) {
if ($('input:radio:checked', this).length != 0) {
$(this).attr('data-name', 'clickedRow');
}
else {
$(this).attr('data-name', 'hidden').hide();
}
});
// Now show the first hidden row
addRow();
$('table.ls-answers', thisQuestion).show();
// Add another row when an option is checked for the first time
$( 'td.answer-item input:radio', thisQuestion).on('click', function (event) {
var thisRow = $(this).closest('tr');
if ($(thisRow).attr('data-name') != 'clickedRow') {
addRow();
$(thisRow).attr('data-name', 'clickedRow');
// if you also want to hide the answered row:
$(thisRow).hide();
}
// The original function of the click event
checkconditions(this.value, this.name, this.type);
if ($(thisRow).is('#question'+qID+' .relevant-row:last')) {
setTimeout(function(){
$(thisQuestion).hide();
$('#ls-button-submit').trigger('click');
}, 200);
}
});
}, 500);
// Function to add a row
function addRow() {
$('.relevant-row[data-name="hidden"]:first' ).attr('data-name', 'visible').show();
// Now, scroll down
$("html, body").animate({ scrollTop: $(document).height() }, 1000);
}
}
// Call the function with a question ID
expandingArray({QID});
});
]]>
$(document).on('ready pjax:scriptcomplete',function(){
// A function to show subsequent rows of an array as options are checked
function expandingArray(qID) {
var thisQuestion = $('#question'+qID);
$('table.ls-answers', thisQuestion).hide();
// Delay to let the relevence be set
setTimeout(function(){
// Build an array of the question rows
var arrayRows = $('table.ls-answers tbody tr.radio-list:not(.ls-irrelevant)', thisQuestion);
// Initially hide all rows unless an input was previously checked
$(arrayRows).addClass('relevant-row').each(function(i) {
if ($('input:radio:checked', this).length != 0) {
$(this).attr('data-name', 'clickedRow');
}
else {
$(this).attr('data-name', 'hidden').hide();
}
});
// Now show the first hidden row
addRow();
$('table.ls-answers', thisQuestion).show();
// Add another row when an option is checked for the first time
$( 'td.answer-item input:radio', thisQuestion).on('click', function (event) {
var thisRow = $(this).closest('tr');
if ($(thisRow).attr('data-name') != 'clickedRow') {
addRow();
$(thisRow).attr('data-name', 'clickedRow');
// if you also want to hide the answered row:
$(thisRow).hide();
}
// The original function of the click event
checkconditions(this.value, this.name, this.type);
if ($(thisRow).is('#question'+qID+' .relevant-row:last')) {
setTimeout(function(){
$(thisQuestion).hide();
$('#ls-button-submit').trigger('click');
}, 200);
}
});
}, 500);
// Function to add a row
function addRow() {
$('.relevant-row[data-name="hidden"]:first' ).attr('data-name', 'visible').show();
// Now, scroll down
$("html, body").animate({ scrollTop: $(document).height() }, 1000);
}
}
// Call the function with a question ID
expandingArray({QID});
});
]]>
qid
parent_qid
sid
gid
type
title
question
preg
help
other
mandatory
question_order
language
scale_id
same_default
relevance
modulename
qid
attribute
value
language
sid
gsid
admin
expires
startdate
adminemail
anonymized
faxto
format
savetimings
template
language
additional_languages
datestamp
usecookie
allowregister
allowsave
autonumber_start
autoredirect
allowprev
printanswers
ipaddr
refurl
publicstatistics
publicgraphs
listpublic
htmlemail
sendconfirmation
tokenanswerspersistence
assessments
usecaptcha
usetokens
bounce_email
attributedescriptions
emailresponseto
emailnotificationto
tokenlength
showxquestions
showgroupinfo
shownoanswer
showqnumcode
bouncetime
bounceprocessing
bounceaccounttype
bounceaccounthost
bounceaccountpass
bounceaccountencryption
bounceaccountuser
showwelcome
showprogress
questionindex
navigationdelay
nokeyboard
alloweditaftercompletion
googleanalyticsstyle
googleanalyticsapikey
showdatasecuritynotice
showsurveypolicynotice
surveyls_survey_id
surveyls_language
surveyls_title
surveyls_description
surveyls_welcometext
surveyls_endtext
surveyls_url
surveyls_urldescription
surveyls_email_invite_subj
surveyls_email_invite
surveyls_email_remind_subj
surveyls_email_remind
surveyls_email_register_subj
surveyls_email_register
surveyls_email_confirm_subj
surveyls_email_confirm
surveyls_dateformat
surveyls_attributecaptions
email_admin_notification_subj
email_admin_notification
email_admin_responses_subj
email_admin_responses
surveyls_numberformat
attachments
surveyls_datasecurity_notice
surveyls_datasecurity_error
surveyls_datasecurity_notice_label
surveyls_policy_notice
surveyls_policy_error
surveyls_policy_notice_label
235789
extends_vanilla
inherit
235789
extends_vanilla
off
off
on
fadeInRight
on
./files/logo.png
noto