Welcome to the LimeSurvey Community Forum

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

Search Results (Searched for: html)

  • tpartner
  • tpartner's Avatar
Yesterday 17:53

By the way, is there a way to avoid that with the editor? Does using the source code editor help or does LimeSurvey add extra HTML afterwards?
LimeSurvey adds nothing, it is a "feature" of the editor. I suggest setting your editor preferences to "Popup".

 
  • phylll
  • phylll's Avatar
Yesterday 17:44
Many thanks for picking this up, Tony. Unfortunately, that is not the problem (since my python script strips all HTML from the equation question already, and I just accidentally readded it using the LimeSurvey web WYSIWIG editor for anonymizing my LSS).

By the way, is there a way to avoid that with the editor? Does using the source code editor help or does LimeSurvey add extra HTML afterwards?
  • tpartner
  • tpartner's Avatar
Yesterday 16:57
I would start with removing the unnecessary HTML from your equation question.

 
  • bunty.hardcastle
  • bunty.hardcastle's Avatar
27 Mar 2024 16:38
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.4.12 from 5.6.57
Own server or LimeSurvey hosting:  LS hosting
Survey theme/template: Bootswatch (extended)
==================
Hi
I'm just upgrading from v5 to v6 and this part of my question no longer works as expected.
The question asks about a piece of audio, so the audio needs to play for 3 seconds before the question appears, so that the participant has had time to hear some of the audio. 

So the survey waits for 3 seconds following the handleFirstPlay being delivered from the html audio player and then removes the 'hidden' class from the question.
The audio player is presented in the group and the js below is run in the first question of the group (survey presented group by group.)

In v5 this works perfectly, in v6, the question is presented before the audio even begins playing. 

The 'hidden' class is definitely added, and this class is working on other parts of the question, but it's no longer working here.

FYI: Filter HTML for XSS is switched off to allow js to run.

What has changed in the update that may cause this, and what's the solution?

Here's the code from the group source:
p><b>How do you feel about this genre of music?</b>(If the audio doesn't start automatically, press PLAY to start)</p>
<audio autoplay="" controls="" onplay="handleFirstPlay()" src="{AUDIOFILELOCN}SONGQ01.mp3"> </audio>

Here's the code from the question source:
<script type="text/javascript">
var hasitrun;
   // Function unhide the first Q three secs after the player is played
    function handleFirstPlay() {
      if (hasitrun != 1) {
        hasitrun = 1;
        if ($('#question{QID}.question-container:visible').length == 0) {
          $('#question{QID}').hide().delay(3000).removeClass('hidden').fadeIn(300);
        }
      }
    }
</script>

Group LS file attached.
  • euroimmun
  • euroimmun's Avatar
26 Mar 2024 11:43
shop in limesurvey was created by euroimmun
I created my survey. The purpose of the survey is to collect information as an online store.
In the first step, I have 5 product groups, and each group contains about 10 products that can be selected.

on the ordering side everything works and looks good, but on the administrative side it doesn't. in the summary of the response, he receives an email with each product and information whether it was purchased or not. I would like to receive an email only with a summary of the answer. If someone hasn't marked the answer, I don't want it in the email.

Additionally, I formatted my responses in html <B><i> etc., the message comes out as txt, not html, even though I have it set in the parameters
https://ibb.co/rs7TfDT



Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
(Write here your question/remark)
  • Dschounas
  • Dschounas's Avatar
25 Mar 2024 17:53
Replied by Dschounas on topic Komplexe Bedingungen
Lieber Joffm,

Vielen Dank für die Mühen!

Leider sind meine Programmier-Kompetenzen so minimal, dass ich noch nicht verstanden habe, wie ich den Pool an Bildern generiere und wie ich diese Bilder in die Fragen einspeise. JavaScript ist für mich eine unbekannte Fremdsprache.
Inzwischen funktioniert immerhin der HTML-Editor wieder, ich kann also nun die Bilder einbauen.

Ich versuche, den zweiten Weg zu befolgen. Nach jedem Bild möchte ich meinen Fragebogen (6 Fragen) stellen. Ich habe also die Fragegruppe "eqPool" erstellt und dort die Frage "Beiträge" hinzugefügt. In der "Hauptfrage" habe ich das JavaScript eingefügt (mit den korrigierten Copy/Paste Fehlern). Aber wie lade ich meine Beiträge/Bilder hoch, sodass das Script diese einlesen kann? Und was schreibe ich nun in die Teilfragen - vor allem, wenn ich ja auch noch meine Fragebögen nach jedem Bild einbauen möchte? Ich stehe leider immer noch auf dem Schlauch ... Habe hier nochmal den aktuellen Stand per ISS beigefügt.

Danke schon mal im Voraus
Jonas
  • tpartner
  • tpartner's Avatar
25 Mar 2024 13:36
Replied by tpartner on topic Autoplay issue
This is not really a topic for a LimeSurvey forum. It has nothing to do with the survey platform but is more an HTML 5 and web development discussion.

Autoplay is not allowed in most modern browsers unless the media is also muted.

- developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide
  • Joffm
  • Joffm's Avatar
24 Mar 2024 18:29
Replied by Joffm on topic Media type in the survey options
What to explain.
You enter the HTML code into the answer option, the subquestion, the question.
In answer option and subquestion you already use the sourcecode editor, which you can switch to HTML editor by clicking the pencil.
In question text ( the HTML Editor.) you may have to switch to source code mode.
Whereas to insert images or videos there are buttons in the editor to insert easily.
And th e audio is not so different.
[url] www.w3schools.com/tags/tag_audio.asp [/url]

Joffm
 
  • HorizonsMolBio
  • HorizonsMolBio's Avatar
24 Mar 2024 17:57
Replied by HorizonsMolBio on topic Conditional basic admin notifications
Yes, thank you, your are right! They are not necessary if the conditions are applied in the basic admin notifications. I've edited my post above accordingly, now also containing a solution to keep the HTML-formatting of the equation question in the basic admin notification.
  • Dschounas
  • Dschounas's Avatar
24 Mar 2024 17:45
Replied by Dschounas on topic Komplexe Bedingungen
Hallo Joffm,vielen Dank für die schnelle Hilfe und für's Mut Machen!

Zweitens: der "eigene Server" ist sicher kein eigener Server, sondern die Uni-Installation. Richtig?
Das kann wichtig sein, wenn es darum geht javascript einzusetzen.

Ich kenne mich nicht so aus, aber auf der Website der Uni steht, dass auf dem Campus "ein eigener LimeSurvey-Server" betrieben werde, der "unabhängig von limesurvey.org und ähnlichen Cloud-Services" bestehe. Javascript scheint zu funktionieren.

Da es 9 Themen gibt also "ein Bild pro Thema".
Dieses Bild wird aus drei Bildern ausgewählt, die "Bedingungen".
Woher kommen die "Bedingungen"?
Und die eigentliche Frage ist: "Wie macht man es, dass man pro Bedingung genau 3 Bilder zeigt".
Also 9 Bilder, aufgeteilt in 3 / 3 / 3.

Ich hole mal etwas weiter aus: Den Teilnehmenden werden 9 Beiträge mit unterschiedlichen Themen gezeigt (als Screenshots). Die eigentliche Manipulation, die ich in der Studie vornehme, ist die Kommunikationsstrategie, die in diesen Beiträgen genutzt wird (persönliche Erfahrung vs. Expertenquelle vs. Kombination aus beidem). Somit habe ich 9 Themen x 3 Kommunikationsstrategien = 27 Beiträge, die ich als Bilder einfüge. Jedes Bild entspricht dann einer Frage in LimeSurvey. Jede Versuchsperson soll aus diesem Pool 9 Beiträge ziehen - dabei soll jedes Thema genau einmal gezogen werden und jede Kommunikationsstrategie genau dreimal.

Daher ist es immer am besten einen lss Export eines Prototypen zu schicken.

Die ISS-Datei kann ich natürlich gerne anhängen.
Mein aktueller Stand ist, dass ich pro Thema eine Fragegruppe erstellt habe. In jeder Gruppe sind drei Fragen enthalten, die den drei Bedingungen entsprechen (die Bilder sind noch nicht drin, weil es Uni-Intern scheinbar gerade mit dem HTML-Editor Probleme gibt. Ich kann keine Bilder hochladen, weil der Editor bei mir und keinem meiner Kommilitonen funktioniert - ist aber ein anderes Thema und darüber habe ich den Uni-Helpdesk schon informiert). Ich habe soweit randomisiert, dass die Fragegruppen in zufälliger Reihenfolge angezeigt werden und dass die Fragen innerhalb der Fragegruppen in zufälliger Reihenfolge angezeigt werden. Aber pro Fragegruppe soll ja nur eine Frage angezeigt werden und wie beschrieben sollen die Bedingungen ausbalanciert "gezogen" werden.
PS: Nicht wundern, damit ich den "Hauptteil" der Umfrage in der Vorschau gut betrachten kann, habe ich die "irrelevanten" Fragen erstmal deaktiviert, die werden in der Vorschau also nicht angezeigt.

Ich schaue mal in das Tutorial (sieht gut aus! Sowas würde ich mir von meiner Uni wünschen ) und versuche, den Thread mit ähnlichem Problem nachzuvollziehen.

Viele Grüße
Jonas
  • Joffm
  • Joffm's Avatar
22 Mar 2024 18:41 - 22 Mar 2024 18:42
Replied by Joffm on topic Text ändern von "soft" pop up fenster
Ja, genau.
Ich kehre jetzt einmal den Lehrer heraus:
In Deinen persönlichen Einstellungen (Du kommst dahin, indem Du rechts oben Deinen Namen anklickst) kannst Du unter drei Editortypen auswählen
 
1. Der "Quellcode Editor" ist ein simples Kästchen. Hier ist es Deine Aufgabe, sämtliche HTML-Formatierungen selbst einzutragen. Es ist der Quelltext
2. Der "Popup HTML Editor" ist das, was Du bei der Eingabe der Teilfragen und Anwortoptionen siehst. Auch ein nacktes Kästchen, aber der Klick auf den Bleistift öffnet den "Inline HTML Editor" in einem neuen kleinen Fenster.
3. Der "Inline HTML Editor". Das ist der WYSIWYG Editor, der Dir viele Dinge abnimmt (sofort anzeigt, wie der Text später aussieht), aber leider manchmal seine eigenen Vorstellungen hat, z.B. was verschachtelte Anführungszeichen angeht.
Um hier in den Quelltext zu gelangen, muss man eben den Button "Quelltext" klicken.

Gut.
Zum script selbst.
Schau einmal im "Nachbar"-Thread
[url] forums.limesurvey.org/forum/german-forum...A4ndern-wie-vorgehen [/url]

Joffm
  • ajparag
  • ajparag's Avatar
20 Mar 2024 05:52
Replied by ajparag on topic Play fullscreen video with no media controls
I have created this HTML page that lets me do exactly what I want. So, it is very much doable.

sprintstudio.ai/media/car/video.html

However, I cannot find a way to incorporate the same in limesurvey.
  • Joffm
  • Joffm's Avatar
18 Mar 2024 18:45
And if you don't have rights to install the plugin
it is sufficient to insert the javascript snippet and the css snippet into your question text.
Like this
Code:
<script type="text/javascript" >
 
/*
 * JavaScript functions to hide empty answers colum in LimeSurvey
 * This allow using Expression Manager to hide answers in array question type
 *
 * @author Denis Chenu <denis@sondages.pro>
 * @copyright 2013-2015 Denis Chenu <http://sondages.pro>
 * @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&amp;dn=gpl-3.0.txt GPL-v3-or-Later
 * @version 2.0
 *
 */
$(document).on('ready pjax:scriptcomplete',function(){
  $("table.ls-answers").each(function(){
      var basetable=$(this);
      var fixedtable = $(this).hasClass('table-fixed') || $(this).hasClass('table-responsive');
      var countEmpty = 0;
      var countNotEmpty = 0;
          $(this).find("thead tr th").each(function(){
              var colindex = $(this).parent('tr').find('td,th').index($(this));
              if (colindex > 0) {
                  if($.trim($(this).html())==""){
                      basetable.find('col').eq(colindex).css('width',0);
                      basetable.find('col').eq(colindex).width(0);
                      basetable.find('tr').each(function(){
                          if(fixedtable) {
                              $(this).find('td,th').eq(colindex).addClass('hideEmptyColumn-hiddencolumn').children().hide();
                          } else {
                              $(this).find('td,th').eq(colindex).addClass('hideEmptyColumn-hiddencolumn').addClass('hidden-xs').children().hide();
                          }
                      });
                      basetable.addClass('hideEmptyColumn-widthhiddencolumn');
                      countEmpty++;
                  } else {
                      basetable.find('col').eq(colindex).addClass('havewidth');
                      countNotEmpty++;
                  }
              }
          });
          if(countEmpty &amp;&amp; countNotEmpty &amp;&amp; $(this).find('col.col-answers')) {
              var colanswersWidth = $(this).find('col').attr("style").replace("width:","").replace("%","").replace(";","").trim();
              if(!isNaN(colanswersWidth)) {
                  finalWidth = (100 - colanswersWidth)/countNotEmpty;
                  $(this).find('col.havewidth').css("width",finalWidth+"%");
              }
          }
  });
});
</script>

css:
Code:
<style type="text/css">td.hideEmptyColumn-hiddencolumn,th.hideEmptyColumn-hiddencolumn{
    overflow:hidden !important;
    border-spacing:0 !important;
    padding:0 !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
}
td.hideEmptyColumn-hiddencolumn *,th.hideEmptyColumn-hiddencolumn * {
    display:none;
}
</style>


Version 6.4.3. Theme: fruity-twentythree




Joffm
  • DenisChenu
  • DenisChenu's Avatar
18 Mar 2024 17:19 - 18 Mar 2024 17:22
Replied by DenisChenu on topic Play fullscreen video with no media controls

Anything that is achievable will be appreciated. Please do not post unnecessary comments.

 
It's not a unnecessary comment.

It maybe something you can do some years ago, but currently : all good browser disable this for their user.
Browser are done for user not for web designer.

For video : google chrome disable the autoplay feature. You can add autoplay : it don't work (still work on firefox, but surely not for a long time).
See : developer.mozilla.org/en-US/docs/Web/HTML/Element/video (autoplay and control, NO way for fullscreen)
 
  • Joffm
  • Joffm's Avatar
15 Mar 2024 17:46
And how do you do it now?
I do not see any issue by entering an image with the usual HTML tags 
Code:
<img src="https://www.myserver.org/myimagefolder/myimage.jpg"/>
 
How did you try to insert the images?

Joffm
Displaying 1 - 15 out of 4847 results.

Lime-years ahead

Online-surveys for every purse and purpose