Welcome to the LimeSurvey Community Forum

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

Search Results (Searched for: html)

  • Joffm
  • Joffm's Avatar
19 Oct 2023 17:21
Replied by Joffm on topic No Source button in the editor toolbar
The usual way.
At the bottom of that window there should be two buttons "OK" and "Cancel"
You did not show the whole screen
And afterwards you save the entire question with the "Save" button.

But as you use the Popup HTML editor, you are in source mode initially, and by clicking the pencil you switch to WYSIWYG mode.

 
  • Nudvardi
  • Nudvardi's Avatar
19 Oct 2023 15:02 - 19 Oct 2023 15:04
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen] Version 6.1.6+230703
Own server or LimeSurvey hosting: Own server
Survey theme/template: fruity
==================
Hi,

in an active survey, we have noticed that in the multiple choice questions with image_select, the images have stopped showing and instead, participants see empty boxes.
This is what it looks like to participants:


This is what I see when I am looking at the question:
 


I have tried including images as answer options in two different ways:
a) uploading the images as .jpg to the server and putting a link to the image in the answer option box
e.g. <p><img alt="" src="/survey/upload/surveys/164365/images/Test1.JPG" /></p>




I tried changing the pre-set text to just the path, as recommended in a previous topic, but that did not work either.


b) using a Base64 code
This is what the image looks like when working on it:
 

This is the html / Base64 code:
 


LimeSurvey displays the images when you work on the answer options, but not when the survey is tested or executed.
We have not done any updates or changed anything in the survey recently, so I don't know why it has stopped working.

I would appreciate any ideas of what might be causing this issue. Does anyone have any ideas of what I could try to do to address this issue?
Thanks in advance!
 
  • DenisChenu
  • DenisChenu's Avatar
19 Oct 2023 08:51 - 19 Oct 2023 08:52
Looking at api.limesurvey.org/classes/remotecontrol...hod_export_responses

It must be in $aAdditionalOptions

Try to send
Code:
['headstyle' => 'codetext']
(found in HTML view of export).
  • ClimateCentre
  • ClimateCentre's Avatar
18 Oct 2023 12:43 - 19 Oct 2023 09:45
I use LimeSurvey Cloud Version 6.3.0
===
Hi! I have a simple PHP script that exports all complete responses from a survey via the remote control API and drops them in a CSV file (which is fetched via Google App Script and imported into a Google Sheet, so that it can be visualized in Looker Studio).
Code:
$response = $lsJSONRPCClient->export_responses($sessionKey, $surveyID, 'csv', 'en', 'complete', 'I_need_BOTH_here');

The issue: the export_responses function has a parameter $sHeadingType that can be set to 'code', 'full' or 'abbreviated', but not to 'both' like in the normal LS statistics module that lets you select 'question code', 'question text' or 'both' for the graph labels. It would be much easier to navigate the spreadsheet when the questions (= column headings) appear as question code and question text (for example, "A1 What is your Name?").

Is there any way to export the responses of a survey with question code AND question text via the remote control API?

Thank you!





 
  • leemgs
  • leemgs's Avatar
18 Oct 2023 11:57 - 24 Oct 2023 10:48
I tried to upload a file in Chrome browser and it failed. The file is not uploaded and only JSON information is displayed in the browser as shown below. 

1. Log message

{ "success":true,"size":267.296875,"name":"sad-engineer.jpg","ext":"jpg","filename":"futmp_haxrm97kawpk9b5_jpg","msg":"The file has been successfully uploaded." }

On the other hand, when I use the Edge browser and Firefox, the file upload works fine. 

What can I do to resolve this issue?

2. How to reproduce the issue (Temporal links):
1. Limesurvey demo, admin mode - demo.limesurvey.org/index.php?r=surveyAd...iew&iSurveyID=768633
2. Limesurvey demo, user mode -
    demo.limesurvey.org/index.php?r=survey/i...8633/gid/78/qid/2446
   demo.limesurvey.org/index.php?r=survey/index&sid=768633&lang=en  


3. Debug messages:

I analyzed the cause of files not being uploaded properly when trying to upload files in the Chrome browser.
Below are the debugging and log messages I collected.
In summary, when performing the file upload function in the Chrome browser, the JavaScript function called currentUploadHandler is not performing properly.

3.1. Chrom browser, debug message, VM349

VM349:1 Uncaught TypeError: Cannot read properties of null (reading 'removeChild')
    at removeNode (<anonymous>:1:1874)
    at HTMLIFrameElement.<anonymous> (<anonymous>:1:6347)

 

3.2. JavaScript error occurs::

window.currentUploadHandler=new uploadHandler(e,t),window.currentUploadHandler.init(),window.currentUploadHandler}}))

!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict"function(){function addEvent(e,t,a){if(e.addEventListener)e.addEventListener(t,a,!1);else{if(!e.attachEvent)throw new Error("not supported or DOM not loaded");e.attachEvent("on"+t,(function(){a.call(e)}))}}if(document.documentElement.getBoundingClientRect)var getOffset=function(e)............................0!=s&&n<s&&showpopups?!!confirm(uploadLang.errorNeedMoreConfirm.replace("%s",s-n))&&l(e,t,a,i),!0)l(e,t,a,i),!0)}}};function escapeHtml(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}window.getUploadHandler=function(e,t){return window.currentUploadHandler=new uploadHandler(e,t),window.currentUploadHandler.init(),window.currentUploadHandler}}));
//# sourceMappingURL=uploadquestion.min.js.map



3.3. Storage device file folder part, corresponding temporary file area:

 invain@ubuntu:/var/www/html/survey$
 invain@ubuntu:/var/www/html/survey$ grep -R "sourceMappingURL=uploadquestion.min.js.map" ./ | more
./assets/packages/questions/upload/build/uploadquestion.min.js://# sourceMappingURL=uploadquestion.min.js.map
./tmp/assets/c23a8689/build/uploadquestion.min.js://# sourceMappingURL=uploadquestion.min.js.map
./tmp/assets/bb996b00/build/uploadquestion.min.js://# sourceMappingURL=uploadquestion.min.js.map
./tmp/assets/da14ce5a/build/uploadquestion.min.js://# sourceMappingURL=uploadquestion.min.js.map
 invain@ubuntu:/var/www/html/survey$
 invain@ubuntu:/var/www/html/survey$


BRs, 
Geunsik Lim. 

 
  • DenisChenu
  • DenisChenu's Avatar
13 Oct 2023 10:20
Replied by DenisChenu on topic Editeur HTML absent - Modèles de courriels
Vérifier que l'HTML est activé pour les envoie des invitations.
manual.limesurvey.org/Participant_settin...mat_for_token_emails
  • ccoupeau
  • ccoupeau's Avatar
13 Oct 2023 09:52
Aidez-nous à vous aider et remplissez les cases appropriées :
Votre version de LimeSurvey : 5.6.36
Votre propre serveur ou LimeSurvey Cloud : Limesurvey hébergé sur nos serveurs
Thème :

==================
Bonjour,

Je remarque que l'éditeur HTML est bien présent pour les 'Eléments de texte' (description, message d'accueil, message de fin) mais dans 
l'onglet 'Modèles de courriels' l'éditeur n'apparaît pas.

Est-ce normal? Si non que faire pour avoir l'éditeur HTML pour les modèles de courriels?
J'ajoute en pj un écran sans l'éditeur HTML.

Merci,
Charles Coupeau.

 
  • jelo
  • jelo's Avatar
13 Oct 2023 00:11
Replied by jelo on topic Semantisches Differential auf dem iPad

Auf dem iPhone kann man in den „Website-Modus“ wechseln und dann wird es richtig dargestellt. Auf dem iPad nutzt das Umstellen des Modus leider nichts, obwohl der Bildschirm größer ist.
 
Die Auflösung des Displays muss nicht unbedingt mit der Größe des Displays einhergehen. Wäre jetzt interessant zu wissen, welches iPad mit welchem Browser (auch wenn bis jetzt bei Apple jeder Browser unter iOS/iPadOS die HTML-Engine von Apple Safari nutzen muss).

Was verstehst Du unter Website-Modus? Eigentlich sollte kein Proband am Browser rumschrauben müssen, um eine Umfrage ordentlich ausfüllen zu können.

Die Darstellung vom semantischen Differential kann man über die CSS-Dateien im verwendeten Theme ab. Vielleicht testest Du mal ein anderes Theme, ob das dort auch so angezeigt wird.
  • SolutionsNZ
  • SolutionsNZ's Avatar
10 Oct 2023 23:00 - 10 Oct 2023 23:00
Replied by SolutionsNZ on topic Custom text fields plugin
Thanks the plugin was installed, however clicking it once installed lead to a 500 error: 

As well as the error image file I attached the zip file as it stands with the correct folder name.500: Internal Server Error The asset "/home/decisions/public_html/s/plugins/exampleSettings/assets/logo.png" to be published does not exist.An internal error occurred while the Web server was processing your request.
  • audience-ruud
  • audience-ruud's Avatar
10 Oct 2023 16:18
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.6.3 (before it was 3.16.0)
Own server or LimeSurvey hosting: Own server
Survey theme/template: default
==================
Hi, 
for one of our clients (WordPress website) we had Limesurvey running inside their WordPress installation by having the folder inside the /public_html folder on the root of the domain. When we started upgrading their PHP version from 7.4 to 8.0 their limeSurvey (v3.16.0) broke and was not compatible with PHP version 8.0. So ofcourse we dove in and fout that version 5.6.3 was compatible with 8.0 and so we upgraded our Limesurvey version by downloading and installing and importing the database. 

However when the client sent out the surveys using the survey URL the error 500: Invalid MAC error appeared in the screen. 
How and why is this happening, and how can we solve this?
  • boehmegregor1980
  • boehmegregor1980's Avatar
10 Oct 2023 15:49
Replied by boehmegregor1980 on topic Bedingte Fragen anhand von Schwellenwerten
Okay. Danke für den Hinweis. Das wusste ich nicht. Habe die Datei gelöscht. Wo kann ich denn die LSS-Datei exportieren? Ich habe nur die Möglichkeit als iss, txt, xml oder html-Datei zu exportieren. 
  • LGimbel
  • LGimbel's Avatar
10 Oct 2023 14:30 - 10 Oct 2023 14:31
Hi Joffm,
thanks a lot for your quick reply.
I'm note sure where to use the codes you told me, I pasted them into the Condition field in the questions Settings. But when I do so and acitvate the survey, the whole question is not shown.
To find out how the question is coded I checked html code but as far as I know it is right if I use the term "andere" right?
Thanks, Lasse



  • mariussi
  • mariussi's Avatar
10 Oct 2023 11:01
Statistics view PHP error was created by mariussi
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Community Edition Version 6.2.11+231007
Own server or LimeSurvey hosting: Self hosting
Survey theme/template: fruity_twentythree
Admin theme: sea green
PHP-Version: PHP Version 8.0.30
==================
I updatet from release 5.6.40 to 6.2.11+231007.
Now, when I go into one survey and click statistics the site does not load. When I right-click "statistics" and click "open in new tab" I get the following error: 
Code:
PHP warning
 
Uninitialized string offset 0
 
/var/www/limesurvey/application/views/admin/export/statistics_subviews/_question.php(820)
 
808                         echo htmlspecialchars(implode(',',$_POST[$myfield2]));
809                     }
810                     echo " -->\n";
811
812                     echo '<div class="statistics-responses-label-group ls-space padding bottom-5 top-15 ls-flex-item">';
813                     //output checkbox and question/label text
814                     echo "<input type='checkbox' name='summary[]' value='$myfield2'";
815
816                     //pre-check
817                     if (isset($summary) &amp;&amp; array_search($myfield2, $summary)!== FALSE) {echo " checked='checked'";}
818
819                     //check if there is a dualscale_headerA/B
820                     $dshresult = $dshresults[$key1][0];
821
822                     //get header
823                     foreach($dshresult as $dshrow)
824                     {
825                         $dshrow=array_values($dshrow);
826                         $dualscaleheadera = $dshrow[0];
827                     }
828
829                     if(isset($dualscaleheadera) &amp;&amp; $dualscaleheadera != "")
830                     {
831                         $labeltitle = $dualscaleheadera;
832                     }

This problem only exist in one survey. The others are fine.
  • Joffm
  • Joffm's Avatar
09 Oct 2023 16:00
You are talking about your HTML table, right?
I'd recommend to have the initial randomization in a (hidden - either by css class 'hidden' or in the script) question of short text.
Here the often shown way to do this:
Code:
<script type="text/javascript" charset="utf-8">function shuffle(array) {
  var currentIndex = array.length, temporaryValue, randomIndex;
  // While there remain elements to shuffle...
  while (0 !== currentIndex) {
    // Pick a remaining element...
    randomIndex = Math.floor(Math.random() * currentIndex);
    currentIndex -= 1;
    // And swap it with the current element.
    temporaryValue = array[currentIndex];
    array[currentIndex] = array[randomIndex];
    array[randomIndex] = temporaryValue;
  }
  return array;
}
 
$(document).on('ready pjax:scriptcomplete',function(){
  var numberOfRows=10;  // Adapt to yout needs
  // Fill the array
  var arr = [];
  for (var i = 1; i <= numberOfRows; i++) {
    arr.push(i);
  }
  arr = shuffle(arr);
  $('#question{QID} input[type="text"]').val(arr);
  $('#question{QID}').hide();
});
</script>
Then use this to display the order of your rows.

Joffm
  • baltzis
  • baltzis's Avatar
07 Oct 2023 19:29
Replied by baltzis on topic Inline editor does not load
Finally, I solved the problem after I cleaned everything in the limesurvey/tmp folder, but any index.html file.
Now I recall that some year and a half ago (April 2022) I had the same problem (see issue #227041 ) and I solved it in the same way. If this is something that is frequently encountered, perhaps some feature is needed to clean everything in the tmp folders from within limesurvey.

Thanks again for the effort to help me!
Displaying 196 - 210 out of 4738 results.

Lime-years ahead

Online-surveys for every purse and purpose