Welcome to the LimeSurvey Community Forum

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

Search Results (Searched for: html)

  • Alex_Ioan
  • Alex_Ioan's Avatar
08 Nov 2023 10:24
Thanks, it worked!
  • DenisChenu
  • DenisChenu's Avatar
08 Nov 2023 10:17
  • Alex_Ioan
  • Alex_Ioan's Avatar
08 Nov 2023 08:31
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.3.4+231108
Own server or LimeSurvey hosting: own server
Survey theme/template: Extends_fruity
==================
Hello, I have just upgraded to version  6.3.4+231108 and I see that the HTML EDITOR missing  - when try to edit questions text. Only the code appears (see the attachment).
Do you have any explanation?
 

Thank you!
Alex
  • DenisChenu
  • DenisChenu's Avatar
07 Nov 2023 20:01
Replied by DenisChenu on topic Unable to use the "Script" tab in questions.

See manual.limesurvey.org/Global_settings/en#Security

Filter HTML for XSS and Disable question script for XSS restricted user
Currently i think best is to set Disable question script for XSS restricted user to NO if all administrators are trusted users
  • DenisChenu
  • DenisChenu's Avatar
07 Nov 2023 18:53
Replied by DenisChenu on topic Unable to use the "Script" tab in questions.
See manual.limesurvey.org/Global_settings/en#Security

Filter HTML for XSS and Disable question script for XSS restricted user
Currently i think best is to set Disable question script for XSS restricted user to NO if all administrators are trusted users
  • Joffm
  • Joffm's Avatar
07 Nov 2023 17:11
Replied by Joffm on topic Rechte Maustaste inaktiv stellen
Na, gut,
Sowohl in Nicole Wellingers Artikel als auch im letzten Link (html-php) wird ja dasselbe script gezeigt.
In beiden siehst Du sehr gut den Bereich des scriptes - von <script> bis </script>. Der Rest dort ist ja nur ein bisschen HTML, um eine Seite zu erzeugen.

Jetzt kannst Du - was m.E. die einfachste Lösung wäre - dieses script in alle die Seiten (natürlich im Quellcode-Modus) einfügen, in denen die Maustaste gesperrt sein soll.
Falls Du "Gruppe für Gruppe" anzeigst, ist es ausreichend, es in den Quellcode der Gruppe einzufügen.

Joffm
  • Joffm
  • Joffm's Avatar
07 Nov 2023 12:17
  • tpartner
  • tpartner's Avatar
06 Nov 2023 20:42
There is no filter argument for that method.

- api.limesurvey.org/classes/remotecontrol...hod_export_responses
  • DenisChenu
  • DenisChenu's Avatar
02 Nov 2023 08:55
  • nemrac
  • nemrac's Avatar
02 Nov 2023 08:25
Add answers to an existing survey was created by nemrac
LimeSurvey version: 5.6.29+230704
Own server or LimeSurvey hosting: own server
==================
Hello!

We have an existing survey and would like to do the following:
A participant opens the survey from a website. We would like to pass some answers into the survey via remote-control API, depending on what the participant selects on the website.

On the API functions site ( api.limesurvey.org/classes/remotecontrol_handle.html ) I couldn't find any suitable functions for this. Has anybody used such functions for adding answers via remote-control API?

I'm grateful for any advice and tips you can give me. Thanks a lot!
Nemrac
  • Joffm
  • Joffm's Avatar
31 Oct 2023 12:22
Hallo, Malte,
dazu benutzt Du am besten das Webdevelopment-Tool Deines Browsers, um die jeweiligen Objekte zu untersuchen.Dort kannst Du direkt mit den Eigenschafzen "herumspielen", um den Effekt zu sehen.
Wenn es dann genaehm ist, übernimmst Du es in die "custom.css" Deines erweiterten themes.
Hier einmal für die Progressbar
Standard Fruity
 
Oben rechts siehst Du den HTML code, unten rechts das css - zusätzlich mit der Angabe, wo es ursprünglich definiert ist.

Hier einmal die Hintergrundfarbe geändert
 

Außerdem kannst Du die "theme.css" anschauen, um auch dort zu sehen, was es gibt, wie es definiert ist; und dann in der "custom.css" überschreiben.

Das ist jetzt Deine Sache. 
Und wenn Du gar nicht zurecht kommst, gibt es ja immer noch unsere LimeSurvey-Partner
[url] www.limesurvey.com/theme-design [/url]

Joffm

P.S.
a. Wenn Du mit "Unterstriche der Schriftzüge" diese kleine Animation meinst, musst Du wohl die Klasse "animate" in den entsprechenden "twig"-Dateien entfernen.
b. Zu "Kasten, Schriftzug, Buttons" der Datenschutzgeschichte habe ich hier schon einmal etwas geschrieben und gezeigt.
Nämlich hier:
[url] forums.limesurvey.org/forum/german-forum...z-%C3%A4ndern#208896 [/url]


 
  • wuarmin
  • wuarmin's Avatar
31 Oct 2023 09:39 - 31 Oct 2023 09:39
Hey,
It's described in this specification:
www.jsonrpc.org/historical/json-rpc-over-http.html

Content-Type SHOULD be 'application/json-rpc' but MAY be 'application/json' or 'application/jsonrequest'

  • holch
  • holch's Avatar
30 Oct 2023 17:07
Replied by holch on topic Email receiving as plain html
Not sure if this really fits into "comfort update".

You also didn't say from which version to which version you upgraded.

"Latest version" isn't really helpful, because currently there are 3 different Limesurvey branches, each with their own "latest" version.

And then yesterdays "latest" version might not be today's "latest version. So always post the exact version number you are talking about.

For example here the latest versions:

6.3.2 30.10.2023
5.6.43 30.10.2023
5.6.42 23.10.2023
6.3.1 23.10.2023

So your post is 4 days old, thus probably you are NOT on the latest version, if you use LS5 or LS6.

And what is "plain html text"? Either it is "plain text" or it is "HTML". Or do you mean that the emails show the HTML source code?
  • tpartner
  • tpartner's Avatar
30 Oct 2023 14:18
Try this:

Code:
<script type="text/javascript" data-author="Tony Partner">  
 
  $(document).on('ready pjax:scriptcomplete',function(){
 
    // Identify the questions
    var qArrayID = '{QID}';
    var qArray = $('#question'+qArrayID);
    var arrayLength = $('tr[id^="javatbd"]', qArray).length;
    var qUploads = qArray.nextAll('.upload-files:lt('+arrayLength+')');
 
    // Add some classes
    qArray.addClass('array-with-uploads-question');
    $(qUploads).addClass('hidden');
 
    // Insert the "Upload" buttons
    $('tr[id^="javatbd"] .answer-item:last-child', qArray).each(function(i) {
      $('*', this).remove();
      $(this).append('<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#upload-'+qArrayID+'-'+(i+1)+'" data-backdrop="static" data-keyboard="false">Anexar comprovante</button>');
    });
 
    // Loop through the upload questions
    $(qUploads).each(function(i) {
      // Create a modal
      $('body').append('<div class="modal upload-modal" id="upload-'+qArrayID+'-'+(i+1)+'" tabindex="-1" role="dialog">\
                <div class="modal-dialog" role="document">\
                  <div class="modal-content">\
                    <div class="modal-header">\
                      <h5 class="modal-title">'+$('.ls-label-question', this).html()+'</h5>\
                    </div>\
                    <div class="modal-body">\
                    </div>\
                    <div class="modal-footer">\
                      <button type="button" class="btn btn-primary" data-bs-dismiss="modal">OK</button>\
                    </div>\
                  </div>\
                </div>\
              </div>');
 
      // Move this question into the modal
      $('#upload-'+qArrayID+'-'+(i+1)+' .modal-body').append($(this));
      $(this).removeClass('hidden');
    });
 
    // Interrupt the Next/Submit function (to put upload questions back in the form)
    $('#limesurvey').on('submit', function(e) {    
      $('.upload-modal .upload-files').appendTo($('.group-container:eq(0)')).addClass('hidden');
    });    
  });
</script>
  • Joffm
  • Joffm's Avatar
30 Oct 2023 13:04 - 30 Oct 2023 13:39
Assesment values in multiple questions are more or less useless as you can't set different values onto the subquestions.
Furthermore you do not access the assessment values in your equation.
Read the manual about "access to variables".

But as we showed no assessment values necessary.

As the shown equation is correct, have a look at the source code of this question.
Maybe there's some HTML code in the equation.
Happens sometimes if you copy the equation from somewhere.

Anyway, you should send the lss export.

Joffm

 
Each one works as expected.
 
Displaying 166 - 180 out of 4738 results.

Lime-years ahead

Online-surveys for every purse and purpose