Welcome to the LimeSurvey Community Forum

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

Search Results (Searched for: html)

  • blacho
  • blacho's Avatar
29 Apr 2024 19:38
Ayúdenos a ayudarle y rellene los siguientes campos:.
Su versión de LimeSurvey: 6.2.11
Servidor propio o LimeSurvey Cloud: propio
Plantilla de diseño utilizada: fruity
==================
hola quiero hacer que unas respuestas de las matrices me aparezcan en pdf report, pero como las matrices las tengo personalizadas con codigo fuente html probablemente sea por eso que no se leen, pero la estructura tiene que ser asi y asi debe de funcionar
he mirado si por limepdf pero al parecer solo es hasta la version 5x de LS y yo ando en 6x, me podrian ayudar a que esas respuestas aparezcan en el pdf report y gracias.

File Attachment:

File Name: limesurvey...3163.lss
File Size:150 KB
  • orri.eiriksson
  • orri.eiriksson's Avatar
29 Apr 2024 15:44
Create a new survey using the API was created by orri.eiriksson
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.5.4
Own server or LimeSurvey hosting: LimeSurvey hosting
Survey theme/template: Any
==================
Hello all,
I wanted to know if it's possible to create a new survey from scratch using only the API.  I don't see any direct calls for it, except perhaps the import_survey method ( api.limesurvey.org/classes/remotecontrol...method_import_survey ). Incidentally, I can't find any documentation on the "survey lsa archive" one might be able to use for that.

Can anyone help me out?
  • Joffm
  • Joffm's Avatar
28 Apr 2024 20:20
Something like this?
 

Add a dummy prefix and suffix and add this to the question text (in source code mode)
and adapt to your needs
Code:
<script type="text/javascript">    
    $(document).on('ready pjax:scriptcomplete',function(){
 
        // Change the prefixes
          $('#question{QID} .ddprefix:eq(0)').html('Pre1');
         $('#question{QID} .ddprefix:eq(1)').html('Pre2');
         $('#question{QID} .ddprefix:eq(2)').html('Pre3');
         $('#question{QID} .ddprefix:eq(3)').html('Pre4');
        $('#question{QID} .ddprefix:eq(4)').html('Pre5');
         $('#question{QID} .ddprefix:eq(5)').html('Pre6');
         $('#question{QID} .ddprefix:eq(6)').html('Pre7');
         $('#question{QID} .ddprefix:eq(7)').html('Pre8');
 
        // Change the suffixes
          $('#question{QID} .ddsuffix:eq(0)').html('Suff1');
         $('#question{QID} .ddsuffix:eq(1)').html('Suff2');
         $('#question{QID} .ddsuffix:eq(2)').html('Suff3');
         $('#question{QID} .ddsuffix:eq(3)').html('Suff4');
        $('#question{QID} .ddsuffix:eq(4)').html('Suff5');
         $('#question{QID} .ddsuffix:eq(5)').html('Suff6');
         $('#question{QID} .ddsuffix:eq(6)').html('Suff7');
         $('#question{QID} .ddsuffix:eq(7)').html('Suff8');
    });
</script>
 
  • Wissensarchitektur
  • Wissensarchitektur's Avatar
26 Apr 2024 11:23
Bulk change radio list to bootstap buttons was created by Wissensarchitektur
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.5.4
Own server or LimeSurvey hosting: Limesurvery hosting
Survey theme/template:  Edited version of fruity
==================
Hello,
I'm preparing a survey in which respondents will receive random ideas and should respond to these ideas with a single click on a bootstrap button. The ideas are inserted as random questions in one question group and users are expected to respond to as many as they wish.

I have created a template and exported it to CSV where I have added the HTML text of the questions (i.e. ideas to be evaluated). When I upload the CSV as a new survey all bootstrap buttons are changed to radio lists, because both answer types have the same code in the CSV table ("L").

There are 1300 questions (randomly displayed ideas to be evaluated) making it impractical to change them all manually to bootstrap buttons. Is there a way to change all radio lists to bootstrap buttons in bulk?
How can I upload the questionaire CSV in a way that all answers options are displayed as bootstrap buttons and not as radio lists?


 
  • free521521521
  • free521521521's Avatar
25 Apr 2024 21:22
The Email template button issue. was created by free521521521
I want to add a button in Email template, so I use:
Code:
<a href="{SURVEYURL}" style="background-color: #4CAF50; color: white; padding: 10px 20px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; cursor: pointer; border-radius: 12px;">Start Survey</a>

But when I check the test Email it show this:
" www.sample.com/survey/index.php?r=survey...token=xxxxxx=zh-Hans " style="background-color: #4CAF50; color: white; padding: 12px 18px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; cursor: pointer; border-radius: 12px;">Start Survey"

Seems the SURVEYURL broke the HTML button, how to solve this problem?

​​​​​​​Thanks!
  • DenisChenu
  • DenisChenu's Avatar
25 Apr 2024 14:26 - 25 Apr 2024 14:36
> The demo files you find in the folder "demo" of the plugin.

No :) In the plugin configuration :) (need update plugin )
 

Attachment not found



> Short: With limeMpdf you can use the bootstrap options.

Long :
  1. mpdf is really more powerfull than tcpdf on HTML support .
  2. LimeMpdf allow you to have your own header/footer/content etc …
  3. LimeMPDF include some dedicated tag for example : in the demo survey : i use <radio> and <radio-checked> tag
  • tpartner
  • tpartner's Avatar
24 Apr 2024 19:30
I have removed my name from your script credit - I did not code the randomization.

If you want to duplicate the headers at the bottom of the table, try this after your randomization. (it will result in slightly invalid HTML)

Code:
$('table.subquestion-list', thisQuestion).append($('table.subquestion-list thead', thisQuestion).clone());
  • DenisChenu
  • DenisChenu's Avatar
24 Apr 2024 13:33
Replied by DenisChenu on topic Import question using LImeSurvey API
You can export such lsq file from any limesurvey, think it's the best solution (dobne for this)
Your write import question
Else you have set_question_properties

And PLEASE ! AGAIN : stackoverflow.com/help/how-to-ask
  • DenisChenu
  • DenisChenu's Avatar
23 Apr 2024 08:18
Replied by DenisChenu on topic Listes de pays ou autres
  • DenisChenu
  • DenisChenu's Avatar
22 Apr 2024 10:34
Replied by DenisChenu on topic Condition sur l'affichage du bouton Envoyer
Ce que j'ai déjà fait, c'est ajouter une question affichage de texte dans chaque groupe contenant le bouton Suivant.
Et supprimer tout le code HTML de navigator.twig

Ensuite : tu utilises les conditions pour afficher ou non cette question.
  • Joffm
  • Joffm's Avatar
20 Apr 2024 15:20 - 20 Apr 2024 15:23
Make sure you have the correct synax.
The editor often changes operator signs to HTML entities, like &gt;, &lt;, &amp;, etc

And of course it has to be on a different page.
How else should it work if the script runs "$(document).on('ready pjax:scriptcomplete')?
Meaning it runs when the page is loaded, before you enter anything.
 
  • 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>


 

Attachment not found

  • 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.
Displaying 46 - 60 out of 4774 results.

Lime-years ahead

Online-surveys for every purse and purpose