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
17 Apr 2024 19:15 - 17 Apr 2024 19:18
Replied by tpartner on topic Adjust the text for 'expired survey' screen
Something like this in layout_errors.twig:

Code:
{# We register a specific css file for that layout. #}
{{ registerTemplateCssFile('css/errors.css') }}
{% set aError     = aSurveyInfo.aError    %}
 
 
{##### CUSTOM ERRORS ####}
{% set customErrorTitle = aError.title %}
{% set customErrorMessage = aError.message %}
{% if aError.type == "survey-expiry" %}
    {% set customErrorTitle = '<p class=" text-danger inherit-sizes" role="alert">CUSTOM TITLE</p>' %}
    {% set customErrorMessage = '<p>Custom error message for expired survey!</p>' %}
{% endif %}
 
<!DOCTYPE html>
<html lang="{{ aSurveyInfo.languagecode }}" dir="{{ aSurveyInfo.dir }}"
        class="{{ aSurveyInfo.languagecode }} dir-{{ aSurveyInfo.dir }} {{ aSurveyInfo.class.html }}" {{ aSurveyInfo.attr.html }}
        xmlns="http://www.w3.org/1999/html">
 
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
        <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
 
        <title>
            {% if aError.error %}
                {{ aError.error }}
            {% else %}
                Error {{ aSurveyInfo.surveyls_title }}
            {% endif %}
        </title>
 
        <meta name="generator" content="LimeSurvey http://www.limesurvey.org"/>
        {% if(imageSrc('./files/favicon.ico')) %}
            <link rel="shortcut icon" href="{{ imageSrc('./files/favicon.ico') }}"/>
        {% endif %}
    </head>
 
    <body class="{{ aSurveyInfo.class.body }} lang-{{ aSurveyInfo.languagecode }} {{ surveyformat }}" marginwidth="0"
          marginheight="0" {{ aSurveyInfo.attr.body }}>
    <div class="container">
        <div id="error-card" class="card w-75 mt-6 mb-0 mx-auto">
            <div class="card-body">
                <h2 class="card-title">
                    {% if aError.error %}
                        {{ aError.error }}
                    {% endif %}
                    {{ customErrorTitle }}
                </h2>
                <hr>
                <div class="card-text">{{ customErrorMessage }}</div>
                {% if aError.contact %}
                    {{ aError.contact }}
                {% else %}
                    {{ gT("For further information please contact %s:")|format (aSurveyInfo.admin) }}
                    {% if aSurveyInfo.adminemail %}
                        <br>
                        <a class="card-link" href='mailto:{{ aSurveyInfo.adminemail }}'>{{ aSurveyInfo.adminemail }}</a>
                    {% endif %}
                {% endif %}
                {% if aError.trace is not empty %}
                    <pre>
                            {{ aError.trace }}
                    </pre>
                {% endif %}
            </div>
 
        </div>
    </div>
    {% block footer %}
        {{ include('./subviews/footer/footer.twig') }}
    {% endblock %}
</body>
</html>


 
  • Mazi
  • Mazi's Avatar
12 Apr 2024 15:08
Der Index wird automatisch erstellt und beinhaltet immer alle Gruppen. Da könnte ich mir höchstens vorstellen, per CSS bestimmte Items aus dem Index zu entfernen.

Für die Platzierung oben links musst du das Template anpassen. Das ist etwas tricky und erfordert HTML/CSS Kenntnisse.
  • Mazi
  • Mazi's Avatar
12 Apr 2024 14:55
Meines Wissens gibt es dafür bei den Standardtemplates keine Option. Dafür müsste man das HTML im Template selbst ändern.

Aus diesem Grund haben wir bei unseren Templates ein Setting "Footer" eingebaut, in welches man global sowie auch auf Umfrage-Ebene einen eigenen Footer z. B. mit Details zu Datenschutz und/oder Impressum einbauen kann.
Du kannst dir die Templates ja mal unter survey-consulting.com/product-category/limesurvey-themes/ anschauen.
  • Mazi
  • Mazi's Avatar
12 Apr 2024 09:06
Replied by Mazi on topic shop in limesurvey
The HTML being shown at the admin email is a bug which we reported a few weeks ago and which is already fixed at the latest 6.x releases.
  • StadtAugsburg
  • StadtAugsburg's Avatar
05 Apr 2024 10:05
Darstellungsfehler Bildauswahl Multiple-Choice was created by StadtAugsburg
Bitte helfen Sie uns, Ihnen zu helfen und füllen Sie folgende Felder aus:
Ihre LimeSurvey-Version: [6.5.2+240402]
Eigener Server oder LimeSurvey-Cloud: eigener Linux Server
Genutzte Designvorlage: fruity
==================
Hallo,
ich habe eine Musterumfrage erstellt, damit die Nutzer alle Fragen mal aufgelistet sehen können.
Hier habe ich Probleme mit der Bildauswahl Multiple-Choice Frage, da wird am Bild die HTML Information aus den Anzeigeeinstellungen der Frage mit angezeigt als Text.
Hier der Link zur Umfrage, die Frage ist auf der 3 Seite. [url] befragung.augsburg.de/index.php/623464?lang=de [/url]

Vielen Dank für die Unterstützung.
Viele Grüße





 
  • DenisChenu
  • DenisChenu's Avatar
04 Apr 2024 09:00
There are no issue with LimeSurvey here.

If you try with setenforce 0 and it work review the selinux configuration. Set the good context for the LimeSurvey upload directory.

access.redhat.com/documentation/en-us/re...ations_using-selinux
  • vasyugan
  • vasyugan's Avatar
03 Apr 2024 16:04 - 03 Apr 2024 16:06
Server delivers empty custom.css was created by vasyugan
Please help us help you and fill where relevant:
Your LimeSurvey version:  LimeSurvey Community Edition Version 6.0.0+230405
Own server or LimeSurvey hosting: own
Survey theme/template: bootswatch
==================
I've edited the custom.css file to contain
``
body {
            font-size: 14px;
    }
``
However, when I run the survey that uses this theme,  the server delivers an empty custom.css. That is: I look at the source code, see that the html header contains the line<link rel="stylesheet" type="text/css" href="[url=view-source:https://survey.uferwerk.org/tmp/assets/b66d22d3/css/custom.css]/tmp/assets/b66d22d3/css/custom.css[/url]" />

and when I open the latter, I see a file only containing the following lines:


/******************
User custom CSS

In this file you can add your own custom CSS
It will be loaded last, so you can override any other property. 
Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/
Everything I added below is missing.

Why is that? I also switched the theme, saved the survey, switched back. No change.
  • DenisChenu
  • DenisChenu's Avatar
03 Apr 2024 09:10
Replied by DenisChenu on topic shop in limesurvey

here is the survey: zapisy.limesurvey.net/196877  

File Attachment:

File Name: limesurvey...8771.lss
File Size:275 KB


 
But ? HTML code from answers must not be shown here ! It's an issue to report.
Only HTML code from free text must be shown as HTML code, for choice or multiple choice : it must be text only !
  • DenisChenu
  • DenisChenu's Avatar
02 Apr 2024 10:20
If you deselect a checkbox : it was set to "", then it's empty.

If you want to use an equation to set default on multiple choice: you must use another equation.

1. EQste : {MULTI_SQ1=if(is_empty(EQcheck.NAOK),"Y",MULTI_SQ1.NAOK=
2. EQcheck : 1

Better to use Equation advanced settings for this.
The no issue with HTML editor. It's done for this.
  • tpartner
  • tpartner's Avatar
28 Mar 2024 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
28 Mar 2024 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
28 Mar 2024 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
Displaying 1 - 15 out of 4717 results.

Lime-years ahead

Online-surveys for every purse and purpose