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
29 Aug 2024 10:54
Replied by Joffm on topic Se pueden subir opciones HTML externas?
Si utiliza un menú desplegable en una pregunta "varios textos breves", esto se hace con un script en el texto fuente de la pregunta.
Entonces puedes cambiar esto cambiando el texto de la pregunta en la base de datos. En la tabla "lime_question_l10ns".
Y nada cambia en la tabla de respuestas; Aquí sólo se almacena un valor; el que fue elegido.

Puedes hacer esto con una SQL-query
  • directamente en PhpMyAdmin
  • en un script php
 
Sin embargo, no veo ninguna necesidad ya que puede cambiar/agregar el texto directamente en el texto de la pregunta.

¿O insertas el menú desplegable de manera diferente?

Joffm
  • Philippe
  • Philippe's Avatar
29 Aug 2024 10:19
Bonjour Denis,

Merci pour ta réponse, en gros il s'agit d'une liste déroulante (que j'ai fait et testé à la fois en étiquette et directement dans le questionnaire) dont j'aimerais changer la couleur de fond en fonction des items. Avec une liste "classique" ça n'est pas possible mais avec ce "nouveau" système de liste (le Bootstarp type I) y a effectivement des boutons de mise en forme comme le Gras, la couleur de caractère ou le fond.
ça génère un HTML qui fonctionne uniquement pour le gras et l'italique mais pas pour les couleurs.
En pièce jointe les fichiers LSS et LSQ
Amicalement et encore merci de l'aide
Philippe
  • blacho
  • blacho's Avatar
29 Aug 2024 08:42
Ayúdenos a ayudarle y rellene los siguientes campos:.
Su versión de LimeSurvey: 6.2.11
Servidor propio o LimeSurvey Cloud: Alojado en un hosting
Plantilla de diseño utilizada: vanilla
==================
Buenas tardes, quiero algo bien complejo para mi LimeSurvey.
Por temas laborales, requiero que, a una pregunta de texto corto multiple se le puedan subir opciones de respuesta:

Mediante una visual API Rest de LimeSurvey o mediante un php custom script en mi hosting, quiero poder otra opcion de respuesta (option value) como se ve en la imagen, que luego de SEBO pueda agregar CARNE sin necesidad de entrar al backend de ese formulario, que sea de manera externa

Puedo hacerlo, cómo? Y obvio, que su cambio se vea reflejado también en su base de datos.
  • lfanfoni
  • lfanfoni's Avatar
28 Aug 2024 17:05
Replied by lfanfoni on topic Impossibile upload video
Ho fatto una prova con una versione 5 un poco più recente della tua. Quando faccio un tentativo di upload dall'editor di una domanda, mi dà gli stessi errori che hai messo tu. Se invece si fa il caricamento usando la schermata "Risorse" (menù delle impostazioni di indagine a sinistra, in basso), nella sottocartella "files", l'upload la fa correttamente. A quel punto quando nell'editor aggiungi un HTML video, lui si ritrova il file già caricato e non ti resta che selezionarlo
  • StefanoGuglielmetti
  • StefanoGuglielmetti's Avatar
28 Aug 2024 11:53 - 28 Aug 2024 11:56
Impossibile upload video was created by StefanoGuglielmetti
Per favore aiutaci ad aiutarti e compila dove necessario:
La tua versione di LimeSurvey: LimeSurvey Community Edition
Versione 5.6.31
Server proprio o LimeSurvey Cloud: proprio
Tema: Fruity

==================
Buongiorno a tutti,
abbiamo un problema relativo all’upload di video (mentre per immagini e link funziona tutto) nelle domande e in generale dove possibile tramite l'editor.
Cliccando su HTML Video dalla finestra che si apre:
  1. Nel TAB Video info cliccando su Cerca sul server la finestra che si apre si blocca (finestra KCFinder...)
  2. Nel TAB Upload, dopo la selezione del file, cliccando su Send it to the server esce una finestra che riporta “La risposta del server non è corretta”
  3. Nel TAB Upload, dopo la selezione del file, cliccando su OK esce una finestra che riporta “Video source URL is missing”

    Abbiamo ampliato i limiti di upload e questo non sembra essere il problema.
  4. Qualcuno ha un’idea?
    Grazie
  • aluisio_oliveira
  • aluisio_oliveira's Avatar
27 Aug 2024 16:20
Replied by aluisio_oliveira on topic File upload
We have web application firewall, a kind of proxy. We have already tested disabling this feature, without success. With the json message stuck on the screen there is a JavaScript error. I don't know if it is related.

Uncaught TypeError: Cannot read properties of null (reading 'removeChild')
at removeNode (<anonymous>:1:1874)
at HTMLIFrameElement.<anonymous> (<anonymous>:1:6347)

function removeNode(e) {
e.parentNode.removeChild(e)
}
  • tpartner
  • tpartner's Avatar
24 Aug 2024 13:47
You cannot set participant properties via ExpressionScript.

A possible solution may be to make an AJAX call to a script that uses the API set_participant_properties() method to adjust the uses left.

Here is an old post that may be useful - forums.limesurvey.org/forum/can-i-do-thi...-add-response#162815

- www.limesurvey.org/manual/RemoteControl_2_API
- api.limesurvey.org/classes/remotecontrol...rticipant_properties
  • madscience
  • madscience's Avatar
21 Aug 2024 12:23 - 21 Aug 2024 12:24
Add Hyperlink to Survey Registration Page was created by madscience
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.6.1+240806
Own server or LimeSurvey hosting: Own Server
Survey theme/template: Fruity TwentyThree
==================
Hi all, I would like to add a Hyperlink within the Survey Registration Page. Yet I coded my indicual text "hard" in the register.twig file in the Design Editor, this basically works fine. But I seems that the twig file can not interpret HTML Code (like <b> or <a href>;) and this is what I am struggling with? Has anoyone an idea?
  • adaviault
  • adaviault's Avatar
07 Aug 2024 16:55 - 07 Aug 2024 16:58
Please help us help you and fill where relevant:
LimeSurvey version: 6.5.15+240701
Own server or LimeSurvey Cloud: UQO
Survey theme/template: vanilla/Minimal Template
==================
Hello,

When my new participants have finished their survey and they click on the "send" button, the page seems to reload and the answers are not saved either on the page or in my database in the "responses" menu. I only see in the database unfinished survey with no answer.

For your information, some of my questions are mandatory and others are not, and I want participants to be able to return to the questionnaire several times to complete it more than once. The parameters for the "Participant Setting" menu are:
- Anonymized responses: Responses to this survey are NOT anonymized
- Allow multiple responses with the same access code: On
- Allow public registration: On
- Use HTML format for participant emails: On
- Send confirmation emails: On

The problem seems to persist whether or not I have a participant table. Also, my organization has changed the Limesurvey platform recently. So I had to export the survey structure from the old version (in the .lss format) and import it into the new version of limesurvey (V6) used by my organization. Previously in the old version, my survey was working fine and there were no problems with data savings. The problem arose when I imported the survey structure into the new version of limsurvey. Just to be clear, I don't talk about the answer previously submitted in the old version, I have export those and I know it is not possible to import them in a new survey. My problem is with the new participants who want to complete my survey.

Thanks for your help.
  • LorenzoKU94
  • LorenzoKU94's Avatar
07 Aug 2024 15:48
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.6.1
Own server or LimeSurvey hosting: LimeSurvey
Survey theme/template: Default
==================Dear Community,I am developing a survey where I need respondents to access certain sections based on a time constraint. Specifically, I want respondents to complete a set of pre-treatment questions, undergo a treatment, and then complete additional questions after a delay.Here's what I’m aiming to achieve:
  1. Single Link Access: Respondents should access the survey through a single link.
  2. Initial Questions: They should first answer a few pre-treatment questions.
  3. Time-Based Access: After completing the initial questions, they should receive a message indicating that the next part of the survey will become available in 20 minutes.
  4. Visibility Control: After the 20-minute delay, the subsequent part of the questionnaire should automatically become visible on their page.
I attempted to use HTML and JavaScript in the End Message section of the survey but didn’t achieve the desired result. As I’m not very experienced with programming, I’d appreciate any suggestions or solutions that don’t require advanced coding skills.Additionally, I have a similar requirement for another survey where respondents need to answer the same question every 15 minutes. I want to ensure that they adhere to this timing.Any ideas or guidance on how to implement these features would be greatly appreciated.Thank you all in advance for your help!Best regards,
Lorenzo
  • fofalaeixdeal
  • fofalaeixdeal's Avatar
05 Aug 2024 12:36
Replied by fofalaeixdeal on topic Request for Information on LimeSurvey
For embedding a survey link into a website using <iframe>, please refer to the following:

Embedding a Survey with <iframe>:

Here’s a basic example of how to use <iframe> to embed a survey:
html
Copy code
<iframe src="SURVEY_LINK_HERE" width="600" height="400"></iframe>
Ensure you replace SURVEY_LINK_HERE with the actual URL of your survey. Adjust the width and height attributes as needed for your website layout.
  • gn1000i100
  • gn1000i100's Avatar
03 Aug 2024 05:59
Je ne comprends pas, quand je teste votre exemple, il marche en effet, et ce qui le différencie à mes yeux, c'est que dans les questions qui affichent les graphiques, dans le code source est présent pas mal de choses dont du JavaScript, et, contrairement à mon cas, les accolades de ce JavaScript ne sont pas converties.

Dans mon cas, le code :
Code:
const raw = parseInt(document.getElementById('rawScore').innerText)
const C = Math.floor(raw/1000000)
const B = Math.floor((raw-C*1000000)/1000)
const A = Math.floor((raw-C*1000000-B*1000)/1)
 
const quotation = {"answered":A+B+C,"score":[A,B,C]}
 
import {renderResult} from "/myLib.js"
 
document.getElementById('smartScore').innerHTML = renderResult(quotation)

Est convertie en  :
Code:
const raw = parseInt(document.getElementById('rawScore').innerText)
const C = Math.floor(raw/1000000)
const B = Math.floor((raw-C*1000000)/1000)
const A = Math.floor((raw-C*1000000-B*1000)/1)
 
const quotation = <span class='em-expression em-haveerror'  ><span class="em-var-string">"answered"</span><span class='em-error' title=' ' ><span title="Syntaxe non pris en charge"> : </span></span><span class='em-error' title=' ' ><span title='Variable non définie' class='em-var em-var-error' >A</span></span><span> + </span><span class='em-error' title=' ' ><span title='Variable non définie' class='em-var em-var-error' >B</span></span><span> + </span><span class='em-error' title=' ' ><span title='Variable non définie' class='em-var em-var-error' >C</span></span>, <span class="em-var-string">"score"</span><span class='em-error' title=' ' ><span title="Syntaxe non pris en charge"> : </span></span><span class='em-error' title=' ' ><span title="Syntaxe non pris en charge"> [ </span></span><span class='em-error' title=' ' ><span title='Variable non définie' class='em-var em-var-error' >A</span></span>, <span class='em-error' title=' ' ><span title='Variable non définie' class='em-var em-var-error' >B</span></span>, <span class='em-error' title=' ' ><span title='Variable non définie' class='em-var em-var-error' >C</span></span><span class='em-error' title=' ' ><span title="Syntaxe non pris en charge"> ] </span></span></span>
 
import <span class='em-expression em-haveerror'  ><span class='em-error' title=' ' ><span title='Variable non définie' class='em-var em-var-error' >renderResult</span></span></span> from "/myLib.js"
 
document.getElementById('smartScore').innerHTML = renderResult(quotation)

Comment puis-je désactiver ce comportement ? (cette conversion)
  • Babs_32
  • Babs_32's Avatar
29 Jul 2024 16:52
Please help us help you and fill where relevant:
Your LimeSurvey version: 3.27.19
Own server or LimeSurvey hosting: own
Survey theme/template:
==================Dear Forum,please apologize if I re-post questions that have already been answered in the forum. If this is the case, I would appreciate to refer me to those answers. As I have no technical background, I would be grateful for any advice. The survey conditions and setup are the following:The closed survey (token generated) will be emailed to different groups, with each group consisting of several persons. The persons in one group are encouraged to discuss the survey answers among themselves (thus there is no need for anonymity among persons of one group).However, it must be ensured that a) there is only one set of answers per group and b) we, as survey organizer, must ensure that the final answers are submitted anonymously (in fact, anonymity is even paramount in this case). In addition, due to the length and depth of questions, participants should be able to pause the survey and resume it later with access to the information they have already filled in previously.AnonymityAs anonymity is of paramount importance for this survey, I was wondering if the “Anonymized responses” option in “Participant settings” is checked “On”, does this mean this “overrides” all other choices in the “Participant settings” but also settings in “Notification & data” and “Publication & access”? Or to put it differently: Is the level of anonymity changed if options like “Set cookie to prevent repeated participation” (in Publication and access) are set to “on”.Ensuring single set of answers while allowing sharing the Survey-link (anonymized + token):As mentioned above, the survey must be anonymized, but it should be possible for the person who receives the original invitation (survey-url with token) to share it with others (whom he /she trusts) in order to get assistance in preparing the answers. -> Does any option that is chosen to ensure the anonymity limit the possibility of sharing the survey link? If so, which ones and are there any work-arounds? Many thanks in advance for your help!!Babs
In more detail the settings that I intend to implement:Participant settings”:-> “Anonymized responses:” On-> “Enable token-based response persistence:” Off-> “Allow multiple responses or update responses with one token:” Off-> “Allow public registration:” Off-> “Use HTML format for token emails:” On [any implications for the degree of anonymity? Or in other word: Good choice, if anonymity should be paramount?]-> “Send confirmation emails:” On [any implications for the degree of anonymity? Or in other word: Good choice, if anonymity should be paramount?]“Notification & Data”-> “Date stamp:” Off-> “Save IP address: ” Off-> “Save referrer URL: ” Off-> “Save timings: ” Off-> “Enable assessment mode: ” Off-> “Participant may save and resume later: ” Off-> “Google Analytics settings:” None “Publication & access:”All options: Off
  • gn1000i100
  • gn1000i100's Avatar
28 Jul 2024 12:09 - 28 Jul 2024 19:28
Pour le graphique via chartjs ou autre, vaut-il mieux que je l'intègre dans une zone de texte personnalisé incluant du JavaScript, ou sous forme d'un "chart_type" dédié ?

Et dans ce dernier cas serait-il pertinent d'ajouter ce chart_type sour forme de plugin ?
Y a-t-il déjà un plugin qui ajoute un chart_type dont je pourrais m'inspirer ?

Pour l'instant, je tente via une question équation qui me fait le calcul de quotation que je souhaite d'afficher le résultat en graphique via la partie script de la question équation.

Cela me donne en source de la partie question :
Code:
<p id="rawScore">{score.value}</p>
<p id="smartScore"> </p>
Et en partie Script :
Code:
const raw = parseInt(document.getElementById('rawScore').innerText)
const C = Math.floor(raw/1000000)
const B = Math.floor((raw-C*1000000)/1000)
const A = Math.floor((raw-C*1000000-B*1000)/1)
 
const quotation = {"answered":A+B+C,"score":[A,B,C]}
 
import {renderResult} from "/myLib.js"
 
document.getElementById('smartScore').innerHTML = renderResult(quotation)


Sauf que les accolades sont interprétées et converties par limeSurvey et du coup ça coince. Dans le code de la page générée, j'ai :
Code:
import <span class='em-expression em-haveerror'  ><span class='em-error' title=' ' ><span title='Variable non définie' class='em-var em-var-error' >renderResult</span></span></span> from "/myLib.js"

de plus, la balise script englobante n'est pas de type module donc j'imagine que mon import ne marcherait pas de toute façon.
  1. Ai-je moyen d'utiliser des accolades dans la partie script sans qu'elles ne soient converties ?
  2. Ai-je moyen d'importer une lib js de mon choix ?
PS : ci-joint le fichier .lss et la lib js que j'essaie de faire fonctionner ensemble.
  • Joffm
  • Joffm's Avatar
25 Jul 2024 16:01
Hallo, es ist nicht nötig, zweimal zu posten.
Um Spam-Attacken zu vermeiden, müssen neue Nutzer zunächst von einem Moderator akzeptiert werden.
Da wir diese Arbeit hier in unserer Freizeit machen, kann dies schon einmal etwas dauern.
Gut, ich habe Deinen zweiten Thread gelöscht.

Joffm
Displaying 151 - 165 out of 4950 results.

Lime-years ahead

Online-surveys for every purse and purpose