<?xml version="1.0" encoding="UTF-8"?>
<document>
 <LimeSurveyDocType>Question</LimeSurveyDocType>
 <DBVersion>178</DBVersion>
 <languages>
  <language>it</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>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[13347]]></qid>
    <parent_qid><![CDATA[0]]></parent_qid>
    <sid><![CDATA[333926]]></sid>
    <gid><![CDATA[724]]></gid>
    <type><![CDATA[:]]></type>
    <title><![CDATA[Q260]]></title>
    <question><![CDATA[<script type="text/javascript" charset="utf-8">
        $(document).ready(function() {
                // Call the exclude function using question ID
                excludeOpt ({QID});
        });
       
        // A function to make the last option in each array row exclusive
        function excludeOpt (qID) {
               
                var thisQuestion = $('#question'+qID)

                // Add some classes to the checkbox cells
                $('table.subquestions-list tbody td', thisQuestion).addClass('normalOpt');
                $('table.subquestions-list tbody tr', thisQuestion).each(function(i) {
                        $('.normalOpt:last', this).removeClass('normalOpt').addClass('exlusiveOpt')
                });

                // A listener on the checkbox cells
                $('table.subquestions-list tbody td', thisQuestion).click(function (event) {
                       
                        // Set some vars
                        var thisRow = $(this).closest('tr');

                        // Uncheck the appropriate boxes in a row
                        if ($(this).hasClass('normalOpt')) {
                                $('.exlusiveOpt input[type=checkbox]', thisRow).attr('checked', false);
                        }
                        else {
                                $('.normalOpt input[type=checkbox]', thisRow).attr('checked', false);
                        }
                });

                // A listener on the checkboxes
                $('table.subquestions tbody td input[type=checkbox]', thisQuestion).click(function (event) {
                       
                        // Set some vars
                        var thisRow = $(this).closest('tr');
                        var thisCell = $(this).closest('td');

                        // Uncheck the appropriate boxes in a row
                        if ($(thisCell).hasClass('normalOpt')) {
                                $('.exlusiveOpt input[type=checkbox]', thisRow).attr('checked', false);
                        }
                        else {
                                $('.normalOpt input[type=checkbox]', thisRow).attr('checked', false);
                        }
                });
        }      
</script><em>Think of the people you know. Could you check how are they employed? You can check more working condition for each category </em> ]]></question>
    <preg/>
    <help><![CDATA[<em>you can choose more option for each row (the last option of the row deletes the other of the same row)</em>]]></help>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <question_order><![CDATA[17]]></question_order>
    <language><![CDATA[it]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
   </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>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[13351]]></qid>
    <parent_qid><![CDATA[13347]]></parent_qid>
    <sid><![CDATA[333926]]></sid>
    <gid><![CDATA[724]]></gid>
    <type><![CDATA[:]]></type>
    <title><![CDATA[1]]></title>
    <question><![CDATA[Businessman]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[1]]></question_order>
    <language><![CDATA[it]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
   </row>
   <row>
    <qid><![CDATA[13353]]></qid>
    <parent_qid><![CDATA[13347]]></parent_qid>
    <sid><![CDATA[333926]]></sid>
    <gid><![CDATA[724]]></gid>
    <type><![CDATA[:]]></type>
    <title><![CDATA[2]]></title>
    <question><![CDATA[Self employed]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[2]]></question_order>
    <language><![CDATA[it]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
   </row>
   <row>
    <qid><![CDATA[13354]]></qid>
    <parent_qid><![CDATA[13347]]></parent_qid>
    <sid><![CDATA[333926]]></sid>
    <gid><![CDATA[724]]></gid>
    <type><![CDATA[:]]></type>
    <title><![CDATA[3]]></title>
    <question><![CDATA[Freelance]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[3]]></question_order>
    <language><![CDATA[it]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
   </row>
   <row>
    <qid><![CDATA[13355]]></qid>
    <parent_qid><![CDATA[13347]]></parent_qid>
    <sid><![CDATA[333926]]></sid>
    <gid><![CDATA[724]]></gid>
    <type><![CDATA[:]]></type>
    <title><![CDATA[4]]></title>
    <question><![CDATA[Worker]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[4]]></question_order>
    <language><![CDATA[it]]></language>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
   </row>
   <row>
    <qid><![CDATA[13375]]></qid>
    <parent_qid><![CDATA[13347]]></parent_qid>
    <sid><![CDATA[333926]]></sid>
    <gid><![CDATA[724]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[SQ001]]></title>
    <question><![CDATA[Relatives]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[1]]></question_order>
    <language><![CDATA[it]]></language>
    <scale_id><![CDATA[1]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
   </row>
   <row>
    <qid><![CDATA[13376]]></qid>
    <parent_qid><![CDATA[13347]]></parent_qid>
    <sid><![CDATA[333926]]></sid>
    <gid><![CDATA[724]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[SQ002]]></title>
    <question><![CDATA[Friends]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[2]]></question_order>
    <language><![CDATA[it]]></language>
    <scale_id><![CDATA[1]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
   </row>
   <row>
    <qid><![CDATA[13378]]></qid>
    <parent_qid><![CDATA[13347]]></parent_qid>
    <sid><![CDATA[333926]]></sid>
    <gid><![CDATA[724]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[SQ003]]></title>
    <question><![CDATA[Acquaintances]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[3]]></question_order>
    <language><![CDATA[it]]></language>
    <scale_id><![CDATA[1]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
   </row>
   <row>
    <qid><![CDATA[13379]]></qid>
    <parent_qid><![CDATA[13347]]></parent_qid>
    <sid><![CDATA[333926]]></sid>
    <gid><![CDATA[724]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[SQ004]]></title>
    <question><![CDATA[I don't know]]></question>
    <other><![CDATA[N]]></other>
    <question_order><![CDATA[4]]></question_order>
    <language><![CDATA[it]]></language>
    <scale_id><![CDATA[1]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
   </row>
  </rows>
 </subquestions>
 <question_attributes>
  <fields>
   <fieldname>qid</fieldname>
   <fieldname>attribute</fieldname>
   <fieldname>value</fieldname>
   <fieldname>language</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[13347]]></qid>
    <attribute><![CDATA[exclude_all_others]]></attribute>
    <value><![CDATA[SQ004]]></value>
   </row>
   <row>
    <qid><![CDATA[13347]]></qid>
    <attribute><![CDATA[multiflexible_checkbox]]></attribute>
    <value><![CDATA[1]]></value>
   </row>
  </rows>
 </question_attributes>
</document>
