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
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
  • holch
  • holch's Avatar
15 Mar 2024 15:42
Could you explain your issue better?

I don't understand.

Where do you try to upload an image?

And what does "upload through HTML" mean?
  • L.Nolte
  • L.Nolte's Avatar
14 Mar 2024 10:55
Ihre LimeSurvey-Version: [Version 3.23.1+200825]
LimeSurvey-Cloud: Universität
Genutzte Designvorlage: fruity
==================
Liebes Forum,

ich habe Schwierigkeiten bei der Integration von Videos für meine Promotion. Ich stehe auch schon in Kontakt mit dem Administrator, jedoch erfolglos. Ich habe auch eine private Version erstellt, wo das Einfügen problemlos funktioniert.
Mein Vorgehen dort:
1. Youtube Video mittels URL einfügen, dann erscheint das IFRAME Symbol in der gewünschten Größe (Info: auch über das IFRAME Symbol in der Spalte ebenfalls möglich)
2. Quellcode: alles leeren, bis auf die Frage, dann Embed Code des Videos einfügen
Dann sehe ich weiterhin nur das IFRAME Symbol nach dem Speichern aber bei der Fragenvorschau sehe ich das Video, kann dieses manuell anklicken zum starten. Auch nach mehrmaligem Öffnen kein Problem.

Nun zu der Cloud Version der Uni:
1. s.o. (Info: auch wenn ich hier schon auf Speichern klicke, erscheint in der nächsten Ansicht das IFRAME Symbol nicht mehr, obwohl es zuerst eingefügt wurde)
2. hier der Code nach dem Klicken auf das Quellcode-Fenster (genauen Link mit XX geändert)
<p><iframe align="middle" frameborder="0" height="400" scrolling="no" src=" www.youtube.com/shorts/XX?feature=share " width="300">


diesen lösche ich und füge den Embed Code des jeweiligen Videos ein:
<iframe width="315" height="560" src=" www.youtube.com/embed/XX " title="V1" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen>
3. Speichern
4. Fragenvorschau: alles ist weg, auch im Quellcode Fenster ist nichts gespeichert worden

Laut dem Admin sind meine Rechte nicht eingeschränkt, jedoch müsste es meiner Meinung nach damit zu tun haben, da es mit derselben Ausführung in der neuen/privaten Version ( 6.4.12 ) funktioniert. Wir haben es auch schon so versucht, dass der Admin die Videos in meine Umfrage einfügt. Hier klappt es wohl auch nur hin und wieder, was ja auch schon merkwürdig ist. Dann ist es so, dass das Video eingefügt ist, ich auch wenn ich direkt die Fragenvorschau anklicke das Video sehen und abspielen kann. Wenn ich dann aber in die Frage reingehe und auch wieder rausgehe, dann ist das Video verschwunden, obwohl ich nichts geändert habe.

Über die HTML5 Möglichkeit funktionniert es bei beiden Versionen nicht trotz mp4 Format. Da sehe ich lediglich ein Bild und kann nichts anklicken zum Starten des Videos.

Ich danke Euch für Eure Zeit und Gedanken
Laura
 
  • blacho
  • blacho's Avatar
13 Mar 2024 21:14
Ayúdenos a ayudarle y rellene los siguientes campos:.
Su versión de LimeSurvey: 6.2.11
Servidor propio o LimeSurvey Cloud:
Plantilla de diseño utilizada: ¡fruity
==================
Quiero saber como agregar las siguientes funciones a mis casillas de respuestas de una matriz:
1. Quiero que en la casilla "DESCRIPCION DE NO CONFORMIDAD", como es un campo para esribir bastante texto, que cuando el usuario le de click a esa casilla se abra en la misma pagina una ventana emergente de un editor de texto html o solo de texto. Que visualmente sea asi: 

2. Que en la casilla de hora, el usuario le de click y le despliegue un reloj simple para marcar la hora.

Mi archivo lss es este:  

File Attachment:

File Name: limesurvey...6559.lss
File Size:68 KB
  • DenisChenu
  • DenisChenu's Avatar
13 Mar 2024 09:06

Ah ok, je mettais directement l'équation dans l'intitulé de la question.
TOP, merci Denis, t'es un chef !
 
Le truc equation existe depuis des années, super pratique : pas d'éditeur HTML qui casse tout, pas de XSS au besoin, le même pour toutes les langues, etc …

Et puis « 2. Contenu dans le champs dédié équation : {TOKEN:LASTNAME}» sur mon premier message
  • DenisChenu
  • DenisChenu's Avatar
12 Mar 2024 16:13
Replied by DenisChenu on topic Maintenance mode plugin of Denis Chenu
Thanks :)

But warning : not tested on 6.X : gitlab.com/SondagesPro/coreAndTools/maintenanceMode

Since 6.X didn't have same HTML than 5X : can be complex …
  • goirigolzarri
  • goirigolzarri's Avatar
08 Mar 2024 12:31
Replied by goirigolzarri on topic Ventanas emergentes en preguntas
Gracias por tu ayuda Joffm.

Pero me ocurre lo siguiente:

Añado el código en el texto de la pregunta en formato html.



 

Pero al guardar la pregunta y comprobarlo, me aparece como texto plano.

 
  • goirigolzarri
  • goirigolzarri's Avatar
07 Mar 2024 12:25
Ventanas emergentes en preguntas was created by goirigolzarri
Ayúdenos a ayudarle y rellene los siguientes campos:.
Su versión de LimeSurvey: [Versión 3.17.17+190918]
Servidor propio o LimeSurvey Cloud: Servidor propio
Plantilla de diseño utilizada: Personalizada
==================
Necesito añadir una ventana emergente en una de las preguntas que muestre una tabla con información añadida, por si los usuarios tienen alguna duda, puedan consultarla.

Con esta versión de LimeSurvey no consigo añadir el código html y que funcione.

¿Como podría crearla?

¡Gracias!
  • DenisChenu
  • DenisChenu's Avatar
07 Mar 2024 10:59

I don't know if this works in V6 or not but I think it's something Limesurvey needs.
 
Create a feature request, or create a QuestionTheme
Maybe it can done, but it stay HTML … then order of element can not be updated easily  … We follow the order of the element in both condition.
  • HorizonsMolBio
  • HorizonsMolBio's Avatar
07 Mar 2024 00:10 - 24 Mar 2024 17:52
Replied by HorizonsMolBio on topic Conditional basic admin notifications
Thank you very much, tpartner and holch! This works perfectly fine :)

I hope you don't mind if I put your answers into a step-by-step solution for future inexperienced users with the same problem (as I as a complete LimeSurvey-newbie had some initial troubles to understand what exactly you mean)?
1.) Create question of the type "equation", activate "always hide this question" in its "Display" settings
2.) Put text to be used in the notification into the field "Question" of the question
3.) Repeat steps 1-2 for every text-element that you want to use in your notification
4.) Reference the hidden question(s) in the notification email template using an expression script (i.e. question code in curly brackets). Here, you can also enter the conditions that define whether a certain text-element should be shown in the notification.
Example: {(if question1.NAOK == "Y", textelement.question)}, with 'question1' defining whether the text-element should be shown, 'textelement' being the text put into the "Question" field of the equation, and the suffix '.question' making sure that the HTML formatted text-element instead of the unformatted text is used in the notification.
 
  • holch
  • holch's Avatar
05 Mar 2024 17:24
Replied by holch on topic Inserting an image using TOKEN:ATTRIBUTE
You did not look at my example in the necessary depth.
Code:
{if(TOKEN:ATTRIBUTE_1=="Y","<img src='yourimageurl' />", "")}

Do you notice something? There is " and there is '. You can't use " in both parts, within the expression and within the HTML code, as the second " will always end this part of the expression. So you need to use ' instead of " for the image source, etc. within the html tags.

Also, your URL is not complete. This might cause another issue later.

Something like this should do the trick:
Code:
{if(TOKEN:ATTRIBUTE_1 == "Y", "<img src=' https://sspgsurveyprd.ethz.ch/upload/surveys/866522/images/BEISPIEL.png ' />", "")}

When you post code, please always try to use the code tags, that makes it easier to read your code.
Displaying 31 - 45 out of 4728 results.

Lime-years ahead

Online-surveys for every purse and purpose