View Issue Details

This issue affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
19660Bug reportsRemoteControlpublic2026-09-17 13:12
Reportermiguelito01 Assigned Toc_schmitz  
PrioritynoneSeverityfeature 
Status closedResolutionfixed 
Product Version6.4.x 
Summary19660: Modify options of a custom matrix question with HTML via API RemoteControl
Description

I kindly and strongly request to obtain a VALID function which can modify texts of questions and sub-questions, add, delete, change, replace through the API, since I have tried to match the manual of this API with Python and PHP and they give me errors as "question InvalidData" when trying to call the question properties.
In the example that requires it, I want to get to the HTML source of a question, call the survey from the API, call the questions, call a specific one and change or add some HTML option.
I leave my very simple LSS example which requires this function, and I leave some screenshots which give me an error when trying to call it with php.

Steps To Reproduce

Steps to reproduce

Code to call my survey:
<?php
// Configuración de la API
$url = '';
$username = '';
$password = '';

// Función para hacer solicitudes a la API de LimeSurvey
function limesurvey_request($method, $params) {
global $url;
$payload = json_encode(array(
'method' => $method,
'params' => $params,
'id' => 1
));
$options = array(
'http' => array(
'header' => "Content-type: application/json\r\n",
'method' => 'POST',
'content' => $payload,
),
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
return json_decode($result, true);
}

// Autenticación
$params = array('username' => $username, 'password' => $password);
$response = limesurvey_request('get_session_key', $params);
$session_key = $response['result'];

// Obtener lista de preguntas
$survey_id = 958615; // Reemplaza con tu ID de encuesta
$params = array('sSessionKey' => $session_key, 'iSurveyID' => $survey_id);
$questions = limesurvey_request('list_questions', $params);

echo "Lista de preguntas:\n";
print_r($questions['result']);

// Seleccionar una pregunta cualquiera para actualizar
$question_to_update = $questions['result'][0]; // Tomamos la primera pregunta de la lista como ejemplo
$question_id = $question_to_update['qid'];

// Datos para la actualización
$updated_question = array(
'question' => 'Nueva pregunta de prueba'
);

// Función para actualizar las propiedades de una pregunta
function set_question_properties($session_key, $question_id, $updated_question) {
global $url;

// Validar la sesión
if (!$session_key) {
    return array('status' => 'Invalid session key');
}

// Datos para la solicitud
$params = array(
    'sSessionKey' => $session_key,
    'iQuestionID' => $question_id,
    'aQuestionData' => $updated_question
);

// Hacer la solicitud a la API
$response = limesurvey_request('set_question_properties', $params);

// Verificar errores en la respuesta
if (isset($response['error'])) {
    return array('status' => 'Error', 'message' => $response['error']);
}

return $response['result'];

}

// Llamar a la función para actualizar la pregunta
$update_result = set_question_properties($session_key, $question_id, $updated_question);

echo "\nResultado de la actualización de la pregunta:\n";
print_r($update_result);

// Cerrar sesión
$params = array('sSessionKey' => $session_key);
limesurvey_request('release_session_key', $params);
?>

Expected result

I was expecting a title of my survey to change, but it doesn't, there is an invalid data error.

Actual result

This is my result, in the end, nothing happens:
Lista de preguntas: Array ( [0] => Array ( [id] => 5856 [question] => hola [help] => [language] => es-CO [qid] => 5856 [parent_qid] => 5855 [sid] => 958615 [type] => T [title] => SQ001 [preg] => [other] => N [mandatory] => [encrypted] => N [question_order] => 0 [scale_id] => 0 [same_default] => 0 [question_theme_name] => longfreetext [modulename] => [gid] => 192 [relevance] => 1 [same_script] => 0 ) [1] => Array ( [id] => 5855 [question] => [help] => Esto es un texto de ayuda de pregunta [language] => es-CO [qid] => 5855 [parent_qid] => 0 [sid] => 958615 [type] => ; [title] => Q00 [preg] => [other] => N [mandatory] => N [encrypted] => N [question_order] => 1 [scale_id] => 0 [same_default] => 0 [question_theme_name] => arrays/texts [modulename] => [gid] => 192 [relevance] => 1 [same_script] => 0 ) [2] => Array ( [id] => 5857 [question] => yo [help] => [language] => es-CO [qid] => 5857 [parent_qid] => 5855 [sid] => 958615 [type] => T [title] => SQ001 [preg] => [other] => N [mandatory] => [encrypted] => N [question_order] => 1 [scale_id] => 1 [same_default] => 0 [question_theme_name] => longfreetext [modulename] => [gid] => 192 [relevance] => [same_script] => 0 ) ) Resultado de la actualización de la pregunta: Array ( [status] => No valid Data )

TagsNo tags attached.
Attached Files
limesurvey_survey_149261.lss (29,315 bytes)   
<?xml version="1.0" encoding="UTF-8"?>
<document>
 <LimeSurveyDocType>Survey</LimeSurveyDocType>
 <DBVersion>615</DBVersion>
 <languages>
  <language>es-CO</language>
 </languages>
 <groups>
  <fields>
   <fieldname>gid</fieldname>
   <fieldname>sid</fieldname>
   <fieldname>group_order</fieldname>
   <fieldname>randomization_group</fieldname>
   <fieldname>grelevance</fieldname>
  </fields>
  <rows>
   <row>
    <gid><![CDATA[191]]></gid>
    <sid><![CDATA[149261]]></sid>
    <group_order><![CDATA[1]]></group_order>
    <randomization_group/>
    <grelevance><![CDATA[1]]></grelevance>
   </row>
  </rows>
 </groups>
 <group_l10ns>
  <fields>
   <fieldname>id</fieldname>
   <fieldname>gid</fieldname>
   <fieldname>group_name</fieldname>
   <fieldname>description</fieldname>
   <fieldname>language</fieldname>
   <fieldname>sid</fieldname>
   <fieldname>group_order</fieldname>
   <fieldname>randomization_group</fieldname>
   <fieldname>grelevance</fieldname>
  </fields>
  <rows>
   <row>
    <id><![CDATA[215]]></id>
    <gid><![CDATA[191]]></gid>
    <group_name><![CDATA[Mi primer grupo de preguntas]]></group_name>
    <language><![CDATA[es-CO]]></language>
    <sid><![CDATA[149261]]></sid>
    <group_order><![CDATA[1]]></group_order>
    <randomization_group/>
    <grelevance><![CDATA[1]]></grelevance>
   </row>
  </rows>
 </group_l10ns>
 <questions>
  <fields>
   <fieldname>qid</fieldname>
   <fieldname>parent_qid</fieldname>
   <fieldname>sid</fieldname>
   <fieldname>gid</fieldname>
   <fieldname>type</fieldname>
   <fieldname>title</fieldname>
   <fieldname>preg</fieldname>
   <fieldname>other</fieldname>
   <fieldname>mandatory</fieldname>
   <fieldname>encrypted</fieldname>
   <fieldname>question_order</fieldname>
   <fieldname>scale_id</fieldname>
   <fieldname>same_default</fieldname>
   <fieldname>relevance</fieldname>
   <fieldname>question_theme_name</fieldname>
   <fieldname>modulename</fieldname>
   <fieldname>same_script</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[5827]]></qid>
    <parent_qid><![CDATA[0]]></parent_qid>
    <sid><![CDATA[149261]]></sid>
    <gid><![CDATA[191]]></gid>
    <type><![CDATA[;]]></type>
    <title><![CDATA[Q00]]></title>
    <preg/>
    <other><![CDATA[N]]></other>
    <mandatory><![CDATA[N]]></mandatory>
    <encrypted><![CDATA[N]]></encrypted>
    <question_order><![CDATA[1]]></question_order>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <question_theme_name><![CDATA[arrays/texts]]></question_theme_name>
    <same_script><![CDATA[0]]></same_script>
   </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>preg</fieldname>
   <fieldname>other</fieldname>
   <fieldname>mandatory</fieldname>
   <fieldname>encrypted</fieldname>
   <fieldname>question_order</fieldname>
   <fieldname>scale_id</fieldname>
   <fieldname>same_default</fieldname>
   <fieldname>relevance</fieldname>
   <fieldname>question_theme_name</fieldname>
   <fieldname>modulename</fieldname>
   <fieldname>same_script</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[5839]]></qid>
    <parent_qid><![CDATA[5827]]></parent_qid>
    <sid><![CDATA[149261]]></sid>
    <gid><![CDATA[191]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[SQ001]]></title>
    <other><![CDATA[N]]></other>
    <encrypted><![CDATA[N]]></encrypted>
    <question_order><![CDATA[0]]></question_order>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <question_theme_name><![CDATA[longfreetext]]></question_theme_name>
    <same_script><![CDATA[0]]></same_script>
   </row>
   <row>
    <qid><![CDATA[5840]]></qid>
    <parent_qid><![CDATA[5827]]></parent_qid>
    <sid><![CDATA[149261]]></sid>
    <gid><![CDATA[191]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[SQ001]]></title>
    <other><![CDATA[N]]></other>
    <encrypted><![CDATA[N]]></encrypted>
    <question_order><![CDATA[3]]></question_order>
    <scale_id><![CDATA[1]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance/>
    <question_theme_name><![CDATA[longfreetext]]></question_theme_name>
    <same_script><![CDATA[0]]></same_script>
   </row>
   <row>
    <qid><![CDATA[5842]]></qid>
    <parent_qid><![CDATA[5827]]></parent_qid>
    <sid><![CDATA[149261]]></sid>
    <gid><![CDATA[191]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[SQ002]]></title>
    <other><![CDATA[N]]></other>
    <encrypted><![CDATA[N]]></encrypted>
    <question_order><![CDATA[4]]></question_order>
    <scale_id><![CDATA[1]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance/>
    <question_theme_name><![CDATA[longfreetext]]></question_theme_name>
    <same_script><![CDATA[0]]></same_script>
   </row>
   <row>
    <qid><![CDATA[5851]]></qid>
    <parent_qid><![CDATA[5827]]></parent_qid>
    <sid><![CDATA[149261]]></sid>
    <gid><![CDATA[191]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[SQ003]]></title>
    <other><![CDATA[N]]></other>
    <encrypted><![CDATA[N]]></encrypted>
    <question_order><![CDATA[5]]></question_order>
    <scale_id><![CDATA[1]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance/>
    <question_theme_name><![CDATA[longfreetext]]></question_theme_name>
    <same_script><![CDATA[0]]></same_script>
   </row>
   <row>
    <qid><![CDATA[5852]]></qid>
    <parent_qid><![CDATA[5827]]></parent_qid>
    <sid><![CDATA[149261]]></sid>
    <gid><![CDATA[191]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[SQ004]]></title>
    <other><![CDATA[N]]></other>
    <encrypted><![CDATA[N]]></encrypted>
    <question_order><![CDATA[6]]></question_order>
    <scale_id><![CDATA[1]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance/>
    <question_theme_name><![CDATA[longfreetext]]></question_theme_name>
    <same_script><![CDATA[0]]></same_script>
   </row>
   <row>
    <qid><![CDATA[5853]]></qid>
    <parent_qid><![CDATA[5827]]></parent_qid>
    <sid><![CDATA[149261]]></sid>
    <gid><![CDATA[191]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[SQ002]]></title>
    <other><![CDATA[N]]></other>
    <encrypted><![CDATA[N]]></encrypted>
    <question_order><![CDATA[1]]></question_order>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <question_theme_name><![CDATA[longfreetext]]></question_theme_name>
    <same_script><![CDATA[0]]></same_script>
   </row>
   <row>
    <qid><![CDATA[5854]]></qid>
    <parent_qid><![CDATA[5827]]></parent_qid>
    <sid><![CDATA[149261]]></sid>
    <gid><![CDATA[191]]></gid>
    <type><![CDATA[T]]></type>
    <title><![CDATA[SQ003]]></title>
    <other><![CDATA[N]]></other>
    <encrypted><![CDATA[N]]></encrypted>
    <question_order><![CDATA[2]]></question_order>
    <scale_id><![CDATA[0]]></scale_id>
    <same_default><![CDATA[0]]></same_default>
    <relevance><![CDATA[1]]></relevance>
    <question_theme_name><![CDATA[longfreetext]]></question_theme_name>
    <same_script><![CDATA[0]]></same_script>
   </row>
  </rows>
 </subquestions>
 <question_l10ns>
  <fields>
   <fieldname>id</fieldname>
   <fieldname>qid</fieldname>
   <fieldname>question</fieldname>
   <fieldname>help</fieldname>
   <fieldname>script</fieldname>
   <fieldname>language</fieldname>
  </fields>
  <rows>
   <row>
    <id><![CDATA[6293]]></id>
    <qid><![CDATA[5827]]></qid>
    <question><![CDATA[<script type="text/javascript" charset="utf-8">
  $(document).on('ready pjax:scriptcomplete', function() {
    var thisQuestion = $('#question{QID}');

    // Reemplazar los campos de texto con campos de selección en la matriz SQ001
    $('.answer-item.answer_cell_SQ001', thisQuestion).addClass('with-select').append('<select class="inserted-select form-control list-question-select">\
      <option value="">...</option>\
      <option value="Rojo">Rojo</option>\
      <option value="Azul">Azul</option>\
      <option value="Amarillo">Amarillo</option>\
      <option value="Verde">Verde</option>\
    </select>');

    // Listener on color select elements
    $('.inserted-select', thisQuestion).on('change', function() {
      var selectedColor = $(this).val();
      var personInput = $(this).closest('.answer-item').siblings('.answer-item.answer_cell_SQ002').find('input[type="text"]');
      
      // Mostrar la persona correspondiente o limpiar el campo
      if (selectedColor === 'Rojo') {
        personInput.val('Morado');
      } else if (selectedColor === 'Azul') {
        personInput.val('Ana');
      } else if (selectedColor === 'Amarillo') {
        personInput.val('Juan');
      } else if (selectedColor === 'Verde') {
        personInput.val('Luis');
      } else {
        personInput.val('');
      }
    });

    // Inicialización de selects al cargar la página
    $('.with-select input:text', thisQuestion).each(function() {
      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).trigger('change');
    });

    // Limpieza de estilos
    $('select.inserted-select', thisQuestion).css({
      'max-width': '100%'
    });
    $('.with-select input:text', thisQuestion).css({
      'position': 'absolute',
      'left': '-9999em'
    });

    // Nueva lógica para SQ003 y SQ004
    // Reemplazar el campo de texto existente en SQ003 con campos de selección
    $('.answer-item.answer_cell_SQ003 input[type="text"]', thisQuestion).replaceWith('<select class="inserted-select-country form-control list-question-select">\
      <option value="">...</option>\
      <option value="Colombia">Colombia</option>\
      <option value="Argentina">Argentina</option>\
      <option value="Brasil">Brasil</option>\
      <option value="Chile">Chile</option>\
    </select>');

    // Listener on country select elements
    $('.inserted-select-country', thisQuestion).on('change', function() {
      var selectedCountry = $(this).val();
      var personInput = $(this).closest('.answer-item').siblings('.answer-item.answer_cell_SQ004').find('input[type="text"]');

      // Mostrar la persona correspondiente o limpiar el campo
      if (selectedCountry === 'Colombia') {
        personInput.val('Carlos');
      } else if (selectedCountry === 'Argentina') {
        personInput.val('María');
      } else if (selectedCountry === 'Brasil') {
        personInput.val('Pedro');
      } else if (selectedCountry === 'Chile') {
        personInput.val('Sofia');
      } else {
        personInput.val('');
      }
    });

    // Inicialización de selects de países al cargar la página
    $('.with-select input:text', thisQuestion).each(function() {
      var thisCell = $(this).closest('.answer-item');
      var inputText = $.trim($(this).val());
      var selectval = $('select.inserted-select-country option', thisCell).filter(function() { return $(this).html() == inputText; }).val();
      $('select.inserted-select-country', thisCell).val(selectval).trigger('change');
    });

    // Limpieza de estilos para selects de países
    $('select.inserted-select-country', thisQuestion).css({
      'max-width': '100%'
    });
  });
</script>]]></question>
    <help/>
    <script/>
    <language><![CDATA[es-CO]]></language>
   </row>
   <row>
    <id><![CDATA[6305]]></id>
    <qid><![CDATA[5839]]></qid>
    <question/>
    <language><![CDATA[es-CO]]></language>
   </row>
   <row>
    <id><![CDATA[6306]]></id>
    <qid><![CDATA[5840]]></qid>
    <question><![CDATA[id]]></question>
    <language><![CDATA[es-CO]]></language>
   </row>
   <row>
    <id><![CDATA[6308]]></id>
    <qid><![CDATA[5842]]></qid>
    <question><![CDATA[sede]]></question>
    <language><![CDATA[es-CO]]></language>
   </row>
   <row>
    <id><![CDATA[6317]]></id>
    <qid><![CDATA[5851]]></qid>
    <question><![CDATA[alias]]></question>
    <language><![CDATA[es-CO]]></language>
   </row>
   <row>
    <id><![CDATA[6318]]></id>
    <qid><![CDATA[5852]]></qid>
    <question><![CDATA[vendedor]]></question>
    <language><![CDATA[es-CO]]></language>
   </row>
   <row>
    <id><![CDATA[6319]]></id>
    <qid><![CDATA[5853]]></qid>
    <question/>
    <language><![CDATA[es-CO]]></language>
   </row>
   <row>
    <id><![CDATA[6320]]></id>
    <qid><![CDATA[5854]]></qid>
    <question/>
    <language><![CDATA[es-CO]]></language>
   </row>
  </rows>
 </question_l10ns>
 <question_attributes>
  <fields>
   <fieldname>qid</fieldname>
   <fieldname>attribute</fieldname>
   <fieldname>value</fieldname>
   <fieldname>language</fieldname>
  </fields>
  <rows>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[min_answers]]></attribute>
    <value/>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[max_answers]]></attribute>
    <value/>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[array_filter_exclude]]></attribute>
    <value/>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[array_filter_style]]></attribute>
    <value><![CDATA[1]]></value>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[array_filter]]></attribute>
    <value/>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[random_group]]></attribute>
    <value/>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[em_validation_q]]></attribute>
    <value/>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[em_validation_q_tip]]></attribute>
    <value/>
    <language><![CDATA[es-CO]]></language>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[em_validation_sq]]></attribute>
    <value/>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[em_validation_sq_tip]]></attribute>
    <value/>
    <language><![CDATA[es-CO]]></language>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[answer_width]]></attribute>
    <value/>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[repeat_headings]]></attribute>
    <value/>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[placeholder]]></attribute>
    <value/>
    <language><![CDATA[es-CO]]></language>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[input_size]]></attribute>
    <value/>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[hide_tip]]></attribute>
    <value><![CDATA[0]]></value>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[random_order]]></attribute>
    <value><![CDATA[0]]></value>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[hidden]]></attribute>
    <value><![CDATA[0]]></value>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[cssclass]]></attribute>
    <value/>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[maximum_chars]]></attribute>
    <value/>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[page_break]]></attribute>
    <value><![CDATA[0]]></value>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[numbers_only]]></attribute>
    <value><![CDATA[0]]></value>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[show_totals]]></attribute>
    <value><![CDATA[X]]></value>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[show_grand_total]]></attribute>
    <value><![CDATA[0]]></value>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[statistics_showgraph]]></attribute>
    <value><![CDATA[1]]></value>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[statistics_graphtype]]></attribute>
    <value><![CDATA[0]]></value>
    <language/>
   </row>
   <row>
    <qid><![CDATA[5827]]></qid>
    <attribute><![CDATA[save_as_default]]></attribute>
    <value><![CDATA[N]]></value>
    <language/>
   </row>
  </rows>
 </question_attributes>
 <surveys>
  <fields>
   <fieldname>sid</fieldname>
   <fieldname>gsid</fieldname>
   <fieldname>admin</fieldname>
   <fieldname>expires</fieldname>
   <fieldname>startdate</fieldname>
   <fieldname>adminemail</fieldname>
   <fieldname>anonymized</fieldname>
   <fieldname>format</fieldname>
   <fieldname>savetimings</fieldname>
   <fieldname>template</fieldname>
   <fieldname>language</fieldname>
   <fieldname>additional_languages</fieldname>
   <fieldname>datestamp</fieldname>
   <fieldname>usecookie</fieldname>
   <fieldname>allowregister</fieldname>
   <fieldname>allowsave</fieldname>
   <fieldname>autonumber_start</fieldname>
   <fieldname>autoredirect</fieldname>
   <fieldname>allowprev</fieldname>
   <fieldname>printanswers</fieldname>
   <fieldname>ipaddr</fieldname>
   <fieldname>ipanonymize</fieldname>
   <fieldname>refurl</fieldname>
   <fieldname>showsurveypolicynotice</fieldname>
   <fieldname>publicstatistics</fieldname>
   <fieldname>publicgraphs</fieldname>
   <fieldname>listpublic</fieldname>
   <fieldname>htmlemail</fieldname>
   <fieldname>sendconfirmation</fieldname>
   <fieldname>tokenanswerspersistence</fieldname>
   <fieldname>assessments</fieldname>
   <fieldname>usecaptcha</fieldname>
   <fieldname>usetokens</fieldname>
   <fieldname>bounce_email</fieldname>
   <fieldname>attributedescriptions</fieldname>
   <fieldname>emailresponseto</fieldname>
   <fieldname>emailnotificationto</fieldname>
   <fieldname>tokenlength</fieldname>
   <fieldname>showxquestions</fieldname>
   <fieldname>showgroupinfo</fieldname>
   <fieldname>shownoanswer</fieldname>
   <fieldname>showqnumcode</fieldname>
   <fieldname>bouncetime</fieldname>
   <fieldname>bounceprocessing</fieldname>
   <fieldname>bounceaccounttype</fieldname>
   <fieldname>bounceaccounthost</fieldname>
   <fieldname>bounceaccountpass</fieldname>
   <fieldname>bounceaccountencryption</fieldname>
   <fieldname>bounceaccountuser</fieldname>
   <fieldname>showwelcome</fieldname>
   <fieldname>showprogress</fieldname>
   <fieldname>questionindex</fieldname>
   <fieldname>navigationdelay</fieldname>
   <fieldname>nokeyboard</fieldname>
   <fieldname>alloweditaftercompletion</fieldname>
   <fieldname>googleanalyticsstyle</fieldname>
   <fieldname>googleanalyticsapikey</fieldname>
   <fieldname>tokenencryptionoptions</fieldname>
  </fields>
  <rows>
   <row>
    <sid><![CDATA[149261]]></sid>
    <gsid><![CDATA[6]]></gsid>
    <admin><![CDATA[inherit]]></admin>
    <adminemail><![CDATA[inherit]]></adminemail>
    <anonymized><![CDATA[N]]></anonymized>
    <format><![CDATA[I]]></format>
    <savetimings><![CDATA[I]]></savetimings>
    <template><![CDATA[inherit]]></template>
    <language><![CDATA[es-CO]]></language>
    <additional_languages/>
    <datestamp><![CDATA[I]]></datestamp>
    <usecookie><![CDATA[I]]></usecookie>
    <allowregister><![CDATA[I]]></allowregister>
    <allowsave><![CDATA[I]]></allowsave>
    <autonumber_start><![CDATA[0]]></autonumber_start>
    <autoredirect><![CDATA[I]]></autoredirect>
    <allowprev><![CDATA[I]]></allowprev>
    <printanswers><![CDATA[I]]></printanswers>
    <ipaddr><![CDATA[I]]></ipaddr>
    <ipanonymize><![CDATA[I]]></ipanonymize>
    <refurl><![CDATA[I]]></refurl>
    <showsurveypolicynotice><![CDATA[0]]></showsurveypolicynotice>
    <publicstatistics><![CDATA[I]]></publicstatistics>
    <publicgraphs><![CDATA[I]]></publicgraphs>
    <listpublic><![CDATA[I]]></listpublic>
    <htmlemail><![CDATA[I]]></htmlemail>
    <sendconfirmation><![CDATA[I]]></sendconfirmation>
    <tokenanswerspersistence><![CDATA[I]]></tokenanswerspersistence>
    <assessments><![CDATA[I]]></assessments>
    <usecaptcha><![CDATA[E]]></usecaptcha>
    <usetokens><![CDATA[N]]></usetokens>
    <bounce_email><![CDATA[inherit]]></bounce_email>
    <attributedescriptions><![CDATA[{"firstname":{"encrypted":"N"},"lastname":{"encrypted":"N"},"email":{"encrypted":"N"},"attribute_1":{"description":"alias","mandatory":"N","encrypted":"N","show_register":"N","cpdbmap":""}}]]></attributedescriptions>
    <emailresponseto><![CDATA[inherit]]></emailresponseto>
    <emailnotificationto><![CDATA[inherit]]></emailnotificationto>
    <tokenlength><![CDATA[-1]]></tokenlength>
    <showxquestions><![CDATA[I]]></showxquestions>
    <showgroupinfo><![CDATA[I]]></showgroupinfo>
    <shownoanswer><![CDATA[I]]></shownoanswer>
    <showqnumcode><![CDATA[I]]></showqnumcode>
    <bounceprocessing><![CDATA[N]]></bounceprocessing>
    <showwelcome><![CDATA[I]]></showwelcome>
    <showprogress><![CDATA[I]]></showprogress>
    <questionindex><![CDATA[-1]]></questionindex>
    <navigationdelay><![CDATA[-1]]></navigationdelay>
    <nokeyboard><![CDATA[I]]></nokeyboard>
    <alloweditaftercompletion><![CDATA[I]]></alloweditaftercompletion>
    <tokenencryptionoptions><![CDATA[{ "enabled":"Y","columns":{ "firstname":"N","lastname":"N","email":"N" } }]]></tokenencryptionoptions>
   </row>
  </rows>
 </surveys>
 <surveys_languagesettings>
  <fields>
   <fieldname>surveyls_survey_id</fieldname>
   <fieldname>surveyls_language</fieldname>
   <fieldname>surveyls_title</fieldname>
   <fieldname>surveyls_description</fieldname>
   <fieldname>surveyls_welcometext</fieldname>
   <fieldname>surveyls_endtext</fieldname>
   <fieldname>surveyls_policy_notice</fieldname>
   <fieldname>surveyls_policy_error</fieldname>
   <fieldname>surveyls_policy_notice_label</fieldname>
   <fieldname>surveyls_url</fieldname>
   <fieldname>surveyls_urldescription</fieldname>
   <fieldname>surveyls_email_invite_subj</fieldname>
   <fieldname>surveyls_email_invite</fieldname>
   <fieldname>surveyls_email_remind_subj</fieldname>
   <fieldname>surveyls_email_remind</fieldname>
   <fieldname>surveyls_email_register_subj</fieldname>
   <fieldname>surveyls_email_register</fieldname>
   <fieldname>surveyls_email_confirm_subj</fieldname>
   <fieldname>surveyls_email_confirm</fieldname>
   <fieldname>surveyls_dateformat</fieldname>
   <fieldname>surveyls_attributecaptions</fieldname>
   <fieldname>surveyls_alias</fieldname>
   <fieldname>email_admin_notification_subj</fieldname>
   <fieldname>email_admin_notification</fieldname>
   <fieldname>email_admin_responses_subj</fieldname>
   <fieldname>email_admin_responses</fieldname>
   <fieldname>surveyls_numberformat</fieldname>
   <fieldname>attachments</fieldname>
  </fields>
  <rows>
   <row>
    <surveyls_survey_id><![CDATA[149261]]></surveyls_survey_id>
    <surveyls_language><![CDATA[es-CO]]></surveyls_language>
    <surveyls_title><![CDATA[16julio2024]]></surveyls_title>
    <surveyls_description/>
    <surveyls_welcometext/>
    <surveyls_endtext/>
    <surveyls_policy_notice/>
    <surveyls_policy_notice_label/>
    <surveyls_url/>
    <surveyls_urldescription/>
    <surveyls_email_invite_subj><![CDATA[Invitación a participar en un formulario]]></surveyls_email_invite_subj>
    <surveyls_email_invite><![CDATA[Dear {FIRSTNAME},<br />
<br />
You have been invited to participate in a survey.<br />
<br />
The survey is titled:<br />
"{SURVEYNAME}"<br />
<br />
"{SURVEYDESCRIPTION}"<br />
<br />
To participate, please click on the link below.<br />
<br />
Sincerely,<br />
<br />
{ADMINNAME} ({ADMINEMAIL})<br />
<br />
----------------------------------------------<br />
Click here to do the survey:<br />
{SURVEYURL}<br />
<br />
Si no desea participar más en este formulario y no quiere recibir más invitaciones, por favor haga click en el siguiente link:<br />
{OPTOUTURL}<br />
<br />
Si está en la lista negra, pero desea participar en este formulario y desea recibir invitaciones por favor haga clic en el siguiente enlace:<br />
{OpenUrl} ]]></surveyls_email_invite>
    <surveyls_email_remind_subj><![CDATA[Recordatorio para participar en un formulario]]></surveyls_email_remind_subj>
    <surveyls_email_remind><![CDATA[Estimado/a {FIRSTNAME} {LASTNAME}:<br />
<br />
Recientemente se le invitó a participar en el formulario de título<br />
<br />
«{SURVEYNAME}»<br />
<br />
«{SURVEYDESCRIPTION}»<br />
<br />
Advertimos que aún no la ha completado, y de la forma más atenta queríamos recordarle que todavía se encuentra disponible si desea participar.<br />
<br />
Para hacerlo, por favor pulse en el siguiente enlace.<br />
<br />
{SURVEYURL}<br />
<br />
Nuevamente le agradecemos su interés y colaboración.<br />
Atentamente,<br />
<br />
{ADMINNAME} ({ADMINEMAIL})<br />
<br />
Si no desea participar más en este formulario y no quiere recibir más invitaciones, por favor haga click en el siguiente link:<br />
{OPTOUTURL}]]></surveyls_email_remind>
    <surveyls_email_register_subj><![CDATA[Confirmación de inscripción en el formulario]]></surveyls_email_register_subj>
    <surveyls_email_register><![CDATA[Estimado/a {FIRSTNAME} {LASTNAME}:<br />
<br />
Usted, o alguien utilizando su dirección de correo electrónico, se ha registrado para participar en un cuestionario en línea titulado "{SURVEYNAME}".<br />
<br />
Para completarla, pulse en la siguiente URL:<br />
<br />
{SURVEYURL}<br />
<br />
Si tiene dudas con respecto al cuestionario, o si no se registró para participar y cree que este correo es un error, por favor, póngase en contacto con {ADMINNAME} en {ADMINEMAIL}.]]></surveyls_email_register>
    <surveyls_email_confirm_subj><![CDATA[Confirmación de su participación en nuestro formulario]]></surveyls_email_confirm_subj>
    <surveyls_email_confirm><![CDATA[Dear {FIRSTNAME},<br />
<br />
This email is to confirm that you have completed the survey titled {SURVEYNAME} and your response has been saved. Thank you for participating.<br />
<br />
If you have any further questions about this email, please contact {ADMINNAME} on {ADMINEMAIL}.<br />
<br />
Sincerely,<br />
<br />
{ADMINNAME}]]></surveyls_email_confirm>
    <surveyls_dateformat><![CDATA[5]]></surveyls_dateformat>
    <surveyls_attributecaptions><![CDATA[{"attribute_1":""}]]></surveyls_attributecaptions>
    <email_admin_notification_subj><![CDATA[Responder envío de formulario {SURVEYNAME}]]></email_admin_notification_subj>
    <email_admin_notification><![CDATA[Hola,<br />
<br />
Una nueva respuesta ha sido realizada para su formulario '{SURVEYNAME}'.<br />
<br />
Click en el siguiente link para recargar el formulario:<br />
{RELOADURL}<br />
<br />
Click en el siguiente link para ver la respuesta individualmente:<br />
{VIEWRESPONSEURL}<br />
<br />
Click en el siguiente link para editar la respuesta:<br />
{EDITRESPONSEURL}<br />
<br />
Vea las estadísticas aquí:<br />
{STATISTICSURL}<br />
<br />
<br />
Las siguientes respuestas fueron subidas por:<br />
{ANSWERTABLE}]]></email_admin_notification>
    <email_admin_responses_subj><![CDATA[Responder envío de formulario {SURVEYNAME} con resultados]]></email_admin_responses_subj>
    <email_admin_responses><![CDATA[Hola,<br />
<br />
Una nueva respuesta ha sido realizada para su formulario '{SURVEYNAME}'.<br />
<br />
Click en el siguiente link para recargar el formulario:<br />
{RELOADURL}<br />
<br />
Click en el siguiente link para ver la respuesta individualmente:<br />
{VIEWRESPONSEURL}<br />
<br />
Click en el siguiente link para editar la respuesta:<br />
{EDITRESPONSEURL}<br />
<br />
Vea las estadísticas aquí:<br />
{STATISTICSURL}<br />
<br />
<br />
Las siguientes respuestas fueron subidas por:<br />
{ANSWERTABLE}]]></email_admin_responses>
    <surveyls_numberformat><![CDATA[0]]></surveyls_numberformat>
   </row>
  </rows>
 </surveys_languagesettings>
 <themes>
  <theme>
   <sid>149261</sid>
   <template_name>fruity_twentythree</template_name>
   <config>
    <options>inherit</options>
   </config>
  </theme>
 </themes>
 <themes_inherited>
  <theme>
   <sid>149261</sid>
   <template_name>fruity_twentythree</template_name>
   <config>
    <options>
     <hideprivacyinfo>off</hideprivacyinfo>
     <showpopups>1</showpopups>
     <showclearall>off</showclearall>
     <questionhelptextposition>top</questionhelptextposition>
     <fixnumauto>enable</fixnumauto>
     <backgroundimage>off</backgroundimage>
     <backgroundimagefile>./files/pattern.png</backgroundimagefile>
     <brandlogo>off</brandlogo>
     <brandlogofile>image::theme::files/logo.png</brandlogofile>
     <font>ibm-sans</font>
     <cssframework>Apple</cssframework>
    </options>
   </config>
  </theme>
 </themes_inherited>
</document>
limesurvey_survey_149261.lss (29,315 bytes)   
Bug heat8
Complete LimeSurvey version number (& build)LimeSurvey Community Edition Versión 6.2.11+231007
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & versionI dont know
Server OS (if known)
Webserver software & version (if known)
PHP VersionI dont know
Git branch / Pull Request URL

Relationships

related to 19617 closedDenisChenu get_question_properties Return Array Doesn't Have "question" field - you can't see what the question is 

Users monitoring this issue

There are no users monitoring this issue.

Activities

tibor.pacalat

tibor.pacalat

2024-07-23 17:48

administrator   ~80701

I looked into this and it looks like it is not possible to modify the question text through the set_question_properties.

@DenisChenu can you confirm?

DenisChenu

DenisChenu

2024-07-24 08:29

developer   ~80704

I'm not a user of API , I think it's the same issue as 19617 : when move question to questioni10n

DenisChenu

DenisChenu

2024-07-24 08:30

developer   ~80705

PS : we need an array for language

c_schmitz

c_schmitz

2026-09-15 23:29

administrator   ~85774

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40354

LimeBot

LimeBot

2026-09-17 13:12

administrator   ~85815

Fixed in Release 7.1.2+260917

Related Changesets

LimeSurvey: master c188d283

2026-09-15 23:29

c_schmitz


Details Diff
Fixed issue 19660: Unable to set question text/help by RemoteControl set_question_properties Affected Issues
19660
mod - application/helpers/remotecontrol/remotecontrol_handle.php Diff File
mod - tests/unit/helpers/remotecontrol/QuestionPropertiesTest.php Diff File

Issue History

Date Modified Username Field Change
2024-07-20 01:57 miguelito01 New Issue
2024-07-20 01:57 miguelito01 File Added: limesurvey_survey_149261.lss
2024-07-20 01:57 miguelito01 File Added: WhatsApp Image 2024-07-19 at 6.56.45 PM.jpeg
2024-07-23 17:48 tibor.pacalat Note Added: 80701
2024-07-23 17:48 tibor.pacalat Bug heat 6 => 8
2024-07-24 08:29 DenisChenu Note Added: 80704
2024-07-24 08:29 DenisChenu Bug heat 8 => 10
2024-07-24 08:30 DenisChenu Relationship added related to 19617
2024-07-24 08:30 DenisChenu Note Added: 80705
2026-09-15 23:15 c_schmitz View Status private => public
2026-09-15 23:15 c_schmitz Story point estimate => 0
2026-09-15 23:15 c_schmitz Bug heat 10 => 4
2026-09-15 23:29 c_schmitz Changeset attached => LimeSurvey master c188d283
2026-09-15 23:29 c_schmitz Note Added: 85774
2026-09-15 23:29 c_schmitz Assigned To => c_schmitz
2026-09-15 23:29 c_schmitz Status new => resolved
2026-09-15 23:29 c_schmitz Resolution open => fixed
2026-09-15 23:29 c_schmitz Bug heat 4 => 6
2026-09-17 13:12 LimeBot Note Added: 85815
2026-09-17 13:12 LimeBot Status resolved => closed
2026-09-17 13:12 LimeBot Bug heat 6 => 8