Ask the community, share ideas, and connect with other LimeSurvey users!
{if(TOKEN:ATTRIBUTE_1 == "version1", version1.question, "")} {if(TOKEN:ATTRIBUTE_1 == "version2", version2.question, "")} {if(TOKEN:ATTRIBUTE_1 == "version3", version3.question, "")} ...
Seems to be a PHP issue.My hypothesis is - RPC does not return JSON but an HTML error page that limer has no idea about as it expects only a JSON string
body.json = list(method = "get_session_key", id = 1, params = list(username = getOption('lime_username'), password = getOption('lime_password'))) r <- POST(getOption('lime_api'), content_type_json(), body = jsonlite::toJSON(body.json, auto_unbox = TRUE)) xml <- content(r, encoding="utf-8") rvest::html_text(xml)
500: Internal Server Error call_user_func_array(): Argument #1 ($callback) must be a valid callback, second array member is not a valid method
<script type="text/javascript" data-author="Tony Partner"> $(document).on('ready pjax:scriptcomplete',function(){ var thisQuestion = $('#question{QID}'); // If inserted radios not present if ($('.inserted-radio', thisQuestion).length == 0) { // Define the radio list HTML var radioTemplate = '<ul class="list-unstyled radio-list">\ <li class="answer-item radio-item">\ <input type="radio" class="inserted-radio" value="1" name="SGQA" id="inserted-radio-SGQA-1">\ <label for="inserted-radio-SGQA-1" class="control-label radio-label">Yes</label>\ </li>\ <li class="answer-item radio-item">\ <input type="radio" class="inserted-radio" value="2" name="SGQA" id="inserted-radio-SGQA-2">\ <label for="inserted-radio-SGQA-2" class="control-label radio-label">No</label>\ </li>\ <li class="answer-item radio-item">\ <input type="radio" class="inserted-radio" value="3" name="SGQA" id="inserted-radio-SGQA-3">\ <label for="inserted-radio-SGQA-3" class="control-label radio-label">??</label>\ </li>\ </ul>'; // Insert the radios $('.answer-item', thisQuestion).addClass('with-radios').each(function() { var thisSQID = $(':text.form-control', this).attr('id').replace(/answer/, ''); var radioHtml = radioTemplate.replace(/SGQA/g, thisSQID); $(this).append(radioHtml); }); } // Listener on the radios $('.radio-item :radio', thisQuestion).on('click', function() { $(this).closest('td').find(':text.form-control').val($(this).val()).trigger('keyup'); }); // Returning to the page $(':text.form-control', thisQuestion).filter(function() { return $.trim($(this).val()) != ''; }).each(function() { var thisCell = $(this).closest('td'); var thisVal = $.trim($(this).val()); $('.inserted-radio[value="'+thisVal+'"]', thisCell).trigger('click'); }); // Apply some styles $(':text.form-control', thisQuestion).css({ 'position': 'absolute', 'left': '-9999em' }); $('.radio-list', thisQuestion).css({ 'text-align': 'left' }); }); </script>
Hier werden ja neue Klassen definiert.Hier die css-Klassen; diese kannst Du in der "custom.css" des erweiterten themes anfügen.
One choice of all 14?where you can only choose 1 option from all the options.
The html producedWhich HTML?
'config'=>array( 'debug'=>2, 'debugsql'=>0, 'use_asset_manager' => true, )
if (!YII_DEBUG || Yii::app()->getConfig('use_asset_manager')) {