<?xml version="1.0" encoding="UTF-8"?>
<document>
 <LimeSurveyDocType>Question</LimeSurveyDocType>
 <DBVersion>366</DBVersion>
 <languages>
  <language>es-CL</language>
 </languages>
 <questions>
  <fields>
   <fieldname>qid</fieldname>
   <fieldname>parent_qid</fieldname>
   <fieldname>sid</fieldname>
   <fieldname>gid</fieldname>
   <fieldname>type</fieldname>
   <fieldname>title</fieldname>
   <fieldname>question</fieldname>
   <fieldname>preg</fieldname>
   <fieldname>help</fieldname>
   <fieldname>other</fieldname>
   <fieldname>mandatory</fieldname>
   <fieldname>question_order</fieldname>
   <fieldname>language</fieldname>
   <fieldname>scale_id</fieldname>
   <fieldname>same_default</fieldname>
   <fieldname>relevance</fieldname>
   <fieldname>modulename</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[999342]]></qid>
    <parent_qid><![CDATA[0]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[;]]></type>
    <title><![CDATA[K1]]></title>
    <question><![CDATA[...
<p><script type="text/javascript" charset="utf-8">
  $(document).on('ready pjax:scriptcomplete',function(){
    var thisQuestion = $('#question{QID}');
 
    // Insert selects
    $('.answer-item.answer_cell_QX001', thisQuestion).addClass('with-select').append('<select class="inserted-select form-control list-question-select">\
  <option value="">Please select...</option>\
  <option value="1">Yes, include</option>\
  <option value="2">No, not include</option>\
</select>');  

    // Listeners
$('.inserted-select', thisQuestion).on('change', function(i) {
if($(this).val() != '') {
$(this).closest('.answer-item').find('input:text').val($('option:selected',
this).val()).trigger('change');
}
else {
$(this).closest('.answer-item').find('input:text').val('').trigger('change');
}
});

    // Returning to page
$('.with-select input:text', thisQuestion).each(function(i) {
var thisCell = $(this).closest('.answer-item');
var inputText = $.trim($(this).val());
$('select.inserted-select', thisCell).val(inputText);
});
    
    // Insert selects into row 1 / column 2
        if($('tr.subquestion-list:eq(0). answer-item.column-2 .inserted-select', thisQuestion).length == 0) {
            $('tr.subquestion-list:eq(0). answer-item.column-2', thisQuestion).addClass('with-select').append('<select class="inserted-select form-control list-question-select">\
                <option value="">Select logic...</option>\
                <option value="1">Native or Primary Forests</option>\
                <option value="2">Secondary or Regenerating Forests</option>\
                <option value="3">Endangered or Rare Forest Types</option>\
                <option value="4">Mix of different forest types</option>\
            </select>');
        }

// Listeners
$('.inserted-select', thisQuestion).on('change', function(i) {
if($(this).val() != '') {
$(this).closest('.answer-item').find('input:text').val($('option:selected',
this).val()).trigger('change');
}
else {
$(this).closest('.answer-item').find('input:text').val('').trigger('change');
}
});

// Returning to page
$('.with-select input:text', thisQuestion).each(function(i) {
var thisCell = $(this).closest('.answer-item');
var inputText = $.trim($(this).val());
$('select.inserted-select', thisCell).val(inputText);
});

  // Listeners on select elements
$('.inserted-select', thisQuestion).on('change', function(i) {
if($(this).val() != '') {
$(this).closest('.answer-item').find('input:text').val($.trim($('option:selected',
this).text())).trigger('keyup');
}
else {
$(this).closest('.answer-item').find('input:text').val('').trigger('keyup');
}
});

// Returning to page
$('.with-select input:text', thisQuestion).each(function(i) {
var thisCell = $(this).closest('.answer-item');
var inputText = $.trim($(this).val());
var selectval = $('select.inserted-select option', thisCell).filter(function () { return $(this).html()
== inputText; }).val();
$('select.inserted-select', thisCell).val(selectval);
});

// Clean-up styles
$('select.inserted-select', thisQuestion).css({
'max-width': '100%'
});
$('.with-select input:text', thisQuestion).css({
'position': 'absolute',
'left': '-9999em'
});
});
</script>
<style type="text/css">.custom-array table.subquestion-list col {
    width: auto !important;
  }
 
  .custom-array table.subquestion-list thead .column-0 {  width: 25%; }
  .custom-array table.subquestion-list thead .column-1 {  width: 20%; }
  .custom-array table.subquestion-list thead .column-2 {  width: 55%; }
</style>
</p>
]]></question>
    <preg/>
    <help/>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[1]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
  </rows>
 </questions>
 <subquestions>
  <fields>
   <fieldname>qid</fieldname>
   <fieldname>parent_qid</fieldname>
   <fieldname>sid</fieldname>
   <fieldname>gid</fieldname>
   <fieldname>type</fieldname>
   <fieldname>title</fieldname>
   <fieldname>question</fieldname>
   <fieldname>preg</fieldname>
   <fieldname>help</fieldname>
   <fieldname>other</fieldname>
   <fieldname>mandatory</fieldname>
   <fieldname>question_order</fieldname>
   <fieldname>language</fieldname>
   <fieldname>scale_id</fieldname>
   <fieldname>same_default</fieldname>
   <fieldname>relevance</fieldname>
   <fieldname>modulename</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[999343]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QY001]]></title>
    <question><![CDATA[Criterion 1]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[1]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999345]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QY002]]></title>
    <question><![CDATA[Criterion 2]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[2]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999346]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QY003]]></title>
    <question><![CDATA[Criterion 3]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[3]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999347]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QY004]]></title>
    <question><![CDATA[Criterion 4]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[4]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999348]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QY005]]></title>
    <question><![CDATA[Criterion 5]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[5]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999349]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QY006]]></title>
    <question><![CDATA[Criterion 6]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[6]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999350]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QY007]]></title>
    <question><![CDATA[Criterion 7]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[7]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999351]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QY008]]></title>
    <question><![CDATA[Criterion 8]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[8]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999352]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QY009]]></title>
    <question><![CDATA[Criterion 9]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[9]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999353]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QY010]]></title>
    <question><![CDATA[Criterion 10]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[10]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999354]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QY011]]></title>
    <question><![CDATA[Criterion 11]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[11]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999355]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QY012]]></title>
    <question><![CDATA[Criterion 12]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[12]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999356]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QY013]]></title>
    <question><![CDATA[Criterion 13]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[13]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999357]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QY014]]></title>
    <question><![CDATA[Criterion 14]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[14]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999344]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QX001]]></title>
    <question><![CDATA[Include or not include?]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[1]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[1]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance/>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999358]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QX002]]></title>
    <question><![CDATA[Select Logic]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[2]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[1]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance/>
    <modulename/>
   </row>
   <row>
    <qid><![CDATA[999359]]></qid>
    <parent_qid><![CDATA[999342]]></parent_qid>
    <sid><![CDATA[591736]]></sid>
    <gid><![CDATA[94265]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[QX003]]></title>
    <question><![CDATA[Comment (optional)]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[3]]></question_order>
    <language><![CDATA[es-CL]]></language>
    <scale_id><![CDATA[1]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance/>
    <modulename/>
   </row>
  </rows>
 </subquestions>
</document>
