Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Search Results (Searched for: survey title)

  • tpartner
  • tpartner's Avatar
17 Jan 2024 14:05
Replied by tpartner on topic No survey name in QueXML PDF

I think quexml don't care of any CSS

then <h1 class="hidden">Hiden title</h1>

Must work
6.x. :)

Code:
<h1 class="d-none">Hiden title</h1>
  • DenisChenu
  • DenisChenu's Avatar
17 Jan 2024 12:50
Replied by DenisChenu on topic No survey name in QueXML PDF
I think quexml don't care of any CSS

then <h1 class="hidden">Hiden title</h1>

Must work
  • holch
  • holch's Avatar
16 Jan 2024 14:24
Replied by holch on topic No survey name in QueXML PDF
OK, my brain just switched to German, as the last thing I had seen before writing my answer was the questionnaire in German. Here in English again:
Easiest and quickest solution: write the survey title into the welcome message, which seems to be shown in the QueXML pdf.
  • przemyslaw.uzdowski.itcard
  • przemyslaw.uzdowski.itcard's Avatar
16 Jan 2024 07:36
Replied by przemyslaw.uzdowski.itcard on topic export_responses_by_token: Unknown named parameter $sToken
I am not entirely sure what you mean by ‘it returning the token’.
As I understand it, in ‘params’ I should include the token (access code) of a participant who took part in the survey.
The only thing that the method returns is quite a long code that includes a message:
Code:
<div class="col">
                <h2 class="error-title">
                    500: Internal Server Error
                    Unknown named parameter $sToken
                </h2>
                <div class="error-content">An internal error occurred while the Web server was processing your request.
                </div>
                Please contact Your Name to report this problem.
            </div>

So I guess I have not tested it. What should I do?
  • przemyslaw.uzdowski.itcard
  • przemyslaw.uzdowski.itcard's Avatar
12 Jan 2024 15:00 - 12 Jan 2024 15:02
export_responses_by_token: Unknown named parameter $sToken was created by przemyslaw.uzdowski.itcard
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Cloud   Version 6.4.0
==================
Hello,

with POST method to remotecontrol URI I am trying to get reponses by token via Postman.
I receive error 500 with title "Unknown named parameter $sToken".

Documentation states that this parameter exists:
export_responses_by_token(string $sSessionKey,integer $iSurveyID,string $sDocumentType,string $sToken,string $sLanguageCode = null,string $sCompletionStatus = 'all',string $sHeadingType = 'code',string $sResponseType = 'short',array $aFields = null): array|string

   
Code:
{
    "method": "export_responses_by_token",
    "params": {
        "sSessionKey": "{{session_key}}",
        "iSurveyID": 233154,
        "sDocumentType": "csv",
        "sToken": "{{participant_access_code}}"
    },
    "id": 1
}
 
What am I doing wrong?
  • hugebob
  • hugebob's Avatar
04 Jan 2024 22:09 - 04 Jan 2024 22:11
Panel Integration and URL Arguments was created by hugebob
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Community Edition, Version 3.28.42+221213
Own server or LimeSurvey hosting: Hosting
Survey theme/template: fruity
==================
Hello,

I've created a survey with 8 questions (Q00001 to Q00008), one of which is a dropdown list and its question ID is Q00001. I'm trying to create a URL argument to pass in a value/selection to preselect the dropdown using Panel Integration. The argument name is listPreSelection.

 

But, when I go to associate my URL argument with that question, only two of my question IDs are listed (see image). One other thing. When trying to add this parameter, the dialog box is labeled "Add Parameter" and not "Add URL Parameter" as illustrated in  Panel integration - LimeSurvey Manual . I know I'm missing something. But, what?

Thanks!

 
  • cgrewal94
  • cgrewal94's Avatar
19 Dec 2023 01:01
I believe I have found the function that has the issue. What things would I have to update in this function?

At a glance I can see that the "question" column does not exist in lime 5 as well.
Code:
private function getSubQuestionsByQuestionId($qid, $language = "en") { $aBasicDestinationFields = \Question::model()->tableSchema->columnNames; array_push($aBasicDestinationFields, 'available_answers'); array_push($aBasicDestinationFields, 'subquestions'); array_push($aBasicDestinationFields, 'attributes'); array_push($aBasicDestinationFields, 'attributes_lang'); array_push($aBasicDestinationFields, 'answeroptions'); array_push($aBasicDestinationFields, 'defaultvalue'); if (!empty($aQuestionSettings)) { $aQuestionSettings = array_intersect($aQuestionSettings, $aBasicDestinationFields); } else { $aQuestionSettings = $aBasicDestinationFields; } if (empty($aQuestionSettings)) { return array('status' => 'No valid Data'); } $aResult = ; foreach ($aQuestionSettings as $sPropertyName) { if ($sPropertyName == 'available_answers' || $sPropertyName == 'subquestions') { $oSubQuestions = \Question::model()->findAllByAttributes(array( 'parent_qid' => $qid, 'language' => $language ), array('order' => 'title')); if (count($oSubQuestions) > 0) { $aData = array(); foreach ($oSubQuestions as $oSubQuestion) { if ($sPropertyName == 'available_answers') { $aData[$oSubQuestion['title']] = $oSubQuestion['question']; } else { $aData[$oSubQuestion['qid']]['title'] = $oSubQuestion['title']; $aData[$oSubQuestion['qid']]['question'] = $oSubQuestion['question']; $aData[$oSubQuestion['qid']]['scale_id'] = $oSubQuestion['scale_id']; } } $aResult[$sPropertyName] = $aData; } else { $aResult[$sPropertyName] = 'No available answers'; } } } return $aResult["subquestions"] ?? ; }
  • dqzhou
  • dqzhou's Avatar
13 Dec 2023 20:49
Replied by dqzhou on topic Transport & Moving-services
Hi Joffm,

I tried that code before (i.e., getbootstrap.com/docs/5.0/components/popovers/ ). It should be shown as attached, which is similar to what you attached. While when I put the same code into my survey, it become the other attached picture. And when I click it, it shows blank and without any explainable words. 

I may request your codes that could obtain the illustration you attached. Besides, I notice your illustration has a blank above the title. Is that possible to remove that? And is it possible to change the color of the title row to other color?

Thank you very much!

Best regards,
Dianqing

 
  • dqzhou
  • dqzhou's Avatar
13 Dec 2023 19:15
Transport & Moving-services was created by dqzhou
Please help us help you and fill where relevant:
Your LimeSurvey version: [6.0]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
Hi,

I met the problem when my Limesurvey updated from 3.0 to 6.0.

My JavaScript codes about clickable words are ineffective after updating. The codes that could be used in 3.0 is:

"
<span style="font-size:15px"><span style="color:black"><a data-content="If the transport mode of the first leg is private vehicle or shared vehicle, the amount of detour riding time for pick-up will be shown in the choice task." data-html="true" data-placement="top" data-bs-toggle="popover" data-bs-trigger="focus hover" role="button" tabindex="0" title="Detour riding time for pick-up">Detour riding time for pick-up</a> <font color="#333333"><script>
$('[data-bs-toggle="popover"]').popover();
$('[data-bs-toggle="tooltip"]').tooltip();
</script></span></span>"

After version update, the word cannot be clickable. I check the code, it is correct. If you still have the version 3.0, you could see the illustration of this code. 

I also try some code about clickable function in Version 6.0, "<span style="font-size:15px"><span style="color:black"><a href="#" title="If the transport mode of the last leg is private vehicle or shared vehicle, the amount of detour riding time for pick-up will be shown in the choice task.">Detour riding time for pick-up</a> <font color="#333333">". This code can be used in Version 6.0, which don't need to click it. But it need to put the cursor over the word and waiting for seconds, then the explainable words will be shown. It is not convenient to let the people wait for it. 

I may request to let the original code effective. I think it is the problem about the version update instead of Java code. So I write this post to ask for an answer. Thank you very much!

Best regards.
dqzhou
  • free521521521
  • free521521521's Avatar
13 Dec 2023 04:51
A bug about the edit for group information. was created by free521521521
LimeSurvey version:   Version 6.3.9+231211
Own server or LimeSurvey hosting: Own sever
Survey theme/template: Fruity TwentyThree
==================
I set the group title and content to empty for pure looks in interface. But I find out when I save it I can not edit it later by clikc from the mouse, because I group item have to click the title to edit.
  • OlivierDestrade
  • OlivierDestrade's Avatar
03 Dec 2023 10:20
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.3.7
Own server or LimeSurvey hosting: cloud
Survey theme/template: default
==================
I want to sent a confirmation mail with the survey responses in the body of the email.
I'm using the syntax "Nom" : {INSERTANS:SurveyIDXGroupIDXQuestionID} which works well for most questions.
Now I have a multiple choice question with the Other option activated. If the user choose Other in the survey, the value that is rendreded in email is "-oth-".
I searched the doc how to render the other value option and found this syntax {QUESTIONCODE_other} but the result in the mail body is :
"Autre" : " < em > G01Q06_other < / em > "
with underlying HTML : "
Code:
<p>"Autre" : "<span class='em-expression em-haveerror'  ><span class="em-compare"> < </span><span class='em-error' title=' ' ><span title='Variable non définie' class='em-var em-var-error' >em</span></span><span class="em-compare"> > </span><a title='[java371828X3X14other][G:0][Q:5]: <span class="M7eMe">Comment avez-vous connu La Cagette ?</span>; value=CHIC' class='em-var em-var-static' href='/questionAdministration/view/surveyid/371828/gid/3/qid/14' >G01Q06_other.value</a><span class="em-compare"> < </span><span> / </span><span class='em-error' title=' ' ><span title='Variable non définie' class='em-var em-var-error' >em</span></span><span class="em-compare"> > </span></span>"</p>
What should be the correct syntax to render the "other" answer to a multiple choice question in email ?  


 
  • r0bis
  • r0bis's Avatar
20 Nov 2023 17:59 - 20 Nov 2023 21:43
remotecontrol error was created by r0bis
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Community Edition Version 6.3.6+231120 (PHP 7.4)
Own server or LimeSurvey hosting: own server, hosted on A2 provider, installed first via softaculous, maintained by paid comfortUpdate
Survey theme/template: default (Fruity) 
==================
After the last update today remotecontrol no longer works.

PHP has been 7.4 for a while on my server.
I use R for reports and data analysis. Until today limer worked well, after the update I get error on authentication:

> skey <- get_session_key()
Error: Argument 'txt' must be a JSON string, URL or file.

The options are correct, the same code worked yesterday. I had this type of error once before - first was
resolved by updating github cloudyr/limer to the latest version. Second time that was when hosting providers systems thought my ip was suspicious and was asking to solve captcha for login. After successful login to admin pages I was able to do remotecontrol again. 
This time I get the error and no idea how to troubleshoot. Remotecontrol is very important to us, an idea how to work on this would be much appreciated.

I played around with function from migliorati and came to conclusion some things work. But it seems that the response coming back from limesurvey might not be JSON or is an empty response altogether for example you do the usual limer options setup and then:

  body.json = list(method = "get_session_key",
                   id = 1,
                   params = list(username = getOption('lime_username'),
                                 password = getOption('lime_password')))
now you have the json rpc request (I think); then you give that request to httr:OST

POST(getOption('lime_api'),
            content_type_json(),
            body = jsonlite::toJSON(body.json,
                                    auto_unbox = TRUE))
you get a response similar to :Response [ lime.server.yours/index.php/admin/remotecontrol ]
Date: 2023-11-20 19:21
Status: 500
Content-Type: text/html; charset=UTF-8
Size: 20.8 kB
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
" www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns=" www.w3.org/1999/xhtml " xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>ArgumentCountError</title>

<style type="text/css">
/*<![CDATA[*/

say instead of printing you save it to an object RRR, then we can see that it does not seem to be a JSON response at all through 
jsonlite::validate(RRR)Error in jsonlite::validate(content(RR, encoding = "utf-8")) :
is.character(txt) is not TRUE
  • r0bis
  • r0bis's Avatar
20 Nov 2023 17:44 - 20 Nov 2023 20:45
This is really quite bad, I get the same error and the only change I made was used comfort update. Now LS version is

LimeSurvey Community Edition Version 6.3.6+231120

and my PHP has been 7.4 for a good few months and until this update was working well.

I played around with function from migliorati and came to conclusion that a lot of things work. But it seems that the response coming back from limesurvey might not be JSON? for example you do the usual limer options setup and then:

  body.json = list(method = "get_session_key",
                   id = 1,
                   params = list(username = getOption('lime_username'),
                                 password = getOption('lime_password')))
now you have the json rpc request (I think); then you give that request to httr::POST

POST(getOption('lime_api'),
            content_type_json(),
            body = jsonlite::toJSON(body.json,
                                    auto_unbox = TRUE))
you get a response similar to :Response [ lime.server.yours/index.php/admin/remotecontrol ]
Date: 2023-11-20 19:21
Status: 500
Content-Type: text/html; charset=UTF-8
Size: 20.8 kB
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
" www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns=" www.w3.org/1999/xhtml " xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>ArgumentCountError</title>

<style type="text/css">
/*<![CDATA[*/say instead of printing you save it to an object RRR, then I am sure in RRR$cookies[7] you have your session key

 
  • DenisChenu
  • DenisChenu's Avatar
17 Nov 2023 12:27
Replied by DenisChenu on topic QueXML PDF print images

My survey is 117 questions.
-will I need to create the template for every question or is there a way to have the pdfReport run through all the questions. 
 
It take times : but i already done for more than 200 questions. Using a text editor and copy/paste the sample

- how can I can put the different group titles and group descriptions into the pdfReport template. 
 
See the example

maybe the easiest for me is to hack the “export pdf” app to get it to show the base64 properly instead of the text of it. But I wouldn’t know where to look. I am doing this for our charity (Service dogs for Veterans and First Resppnders) we can’t afford to pay a developer. I’ll need to figure this out with whatever free help you guys are able to give.  
If it's so easy i surely do it since a lot of years.
Displaying 46 - 60 out of 100 results.

Lime-years ahead

Online-surveys for every purse and purpose