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 Jan 2024 12:36
Replied by Joffm on topic ExpressionScript mit Klasse designen
Richtig, die Anführungszeichen sind nicht richtig.

Du kannst keine gleichartigen Anführungszeichen verschachteln.
Es ist ähnlich wie in unserer Sprache.
Er sagte "Geh bitte in die Bäckerei "Meier" in der Hauptstraße".
Ist die wörtliche Rede schon nach Bäckerei zu Ende? Anscheinend Ja. 
Der Leser sieht natürlich, was gemeint ist, eine Programmiersprache weniger.

Also:
{if(Q1==1,"<span class='gruen'>Richtige Antwort.<span>", "<span class='rot'>Falsche Antwort.</span>")}
oder umgekehrt
{if(Q1==1,'<span class="gruen">Richtige Antwort.<span>', '<span class="rot">Falsche Antwort.</span>')}

Da ich dem HTML-Inline-Editor in dieser Hinsicht nicht ganz traue (er hat manchmal eigene Ideen, Anführungszeichen umzuwandeln), nimm besser den QuellCode-Editor.
 

Joffm

 
  • Joffm
  • Joffm's Avatar
20 Jan 2024 18:13
Replied by Joffm on topic Help materials for Version 6
As I wrote:
In "eqNames" you have to change these two lines from "red" to "blue".
And do NOT copy them from this forum thread. They will include HTML garbage.

I displayed the entire code to show that it is 11 times the same procedure.
Have look at the manual to understand, what the functions ("rand", "strlen", "substr", "str_replace") do to better understand the logic..

Addition:
And if you switch back to "question by question" you have to move
"selNames" before "eqNames"; and of course hide these question after you tested.

Joffm
  • Joffm
  • Joffm's Avatar
19 Jan 2024 23:14 - 19 Jan 2024 23:17
Did you import the demo?

And you create your report using HTML, css and ExpressionScript, no php.

Joffm
  • Joffm
  • Joffm's Avatar
19 Jan 2024 11:43 - 19 Jan 2024 11:50
Replied by Joffm on topic Format answers with iframes as a table?
Hi, here is the question with 5 videos.
Your three and - just to show - two more Ricks.
 

Up to you to adapt to your number of videos (or display only two in a row)

 

File Attachment:

File Name: limesurvey...6577.lss
File Size:33 KB


Joffm

By the way:
You used an image-select question.
This is to display images. And here you enter only the path to the image without any HTML.
And you click the image to select
 

Otherwise it is displayed as a normal list(radio), as you see in your example.
  • Joffm
  • Joffm's Avatar
18 Jan 2024 18:31
Replied by Joffm on topic Format answers with iframes as a table?
To show more than one video in a row is easy. Set the "columns" accordingly.
 

Here two images to show that it is possible to center the buttons.
This is a HTML table in the question text and the buttons are moved there by javascript.

 



Now pülease send a lss export of these relevant questions and we will see.

Joffm
  • DenisChenu
  • DenisChenu's Avatar
18 Jan 2024 10:10

I really need to play with that plugin. I know that it is very powerful, but never needed it. But i think it is a great addition to Limesurvey. Big thanks to DenisChenu for providing this!
 
I improve the demo survey to show methodology and sample : demo.sondages.pro/226435?newtest=Y&lang=en

I still have a long term project to create such HTML automatically to have an automatic clean pdf report, but need to construct 80 html page minimum
  • DenisChenu
  • DenisChenu's Avatar
17 Jan 2024 14:50
Vous gérez votre application ?

Pour le premier système : créer les invitations via l'API , et utiliser un attribut pour le groupe
Pour le deuxième : api.limesurvey.org/classes/remotecontrol...t_responses_by_token

 
  • Joffm
  • Joffm's Avatar
17 Jan 2024 11:41
Hi,
you may use the plugin "pdfReport".
[url] gitlab.com/SondagesPro/ExportAndStats/pdfReport [/url]
and optionally "limeMpdf"
[url] gitlab.com/SondagesPro/coreAndTools/limeMpdf [/url]

Design it to your needs with HTML and ExpressionScript.

Here you see the report in the response table.
 
Click it to see and/or download
 

Joffm
  • edewil
  • edewil's Avatar
11 Jan 2024 22:04
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.6.49
Own server or LimeSurvey hosting:
Survey theme/template: Vanilla
==================
Hello everyone! I previously implemented a conjoint experiment in LimeSurvey (with a lot of help from this forum, thank you all) and I am trying to do it again for another project. I'm using a different version than last time (I'm on a different organization's account and previously used version 3.27.19) and the process that worked for me last time isn't working now. Here is a sample version of the survey I'm working on:  

File Attachment:

File Name: conjoint_t...1-11.lss
File Size:56 KB


I have 4 attributes with two possible values, so there are 16 profiles that can be shown. The intended final result is 5 questions which each present a comparison between 2 randomly selected profiles, with the attributes in random order.

Here is how I implemented it in the past/the process I am currently using:

In the first item (H0), I generate a random string of 10 numbers between 1 and 16 which determine the pairs that are presented. If the first 6 characters of the string are "005009", question 1 presents a comparison between profile 5 and profile 9.

The second item (H1) contains the profiles themselves as default answers (text changed so attribute 1 is a or b, 2 is c or d, 3 is e or f, 4 is g or h). The text for each attribute is 52 characters (208 per profile) including whitespace so I can later pull out profiles and attributes in order.

The third item (H2) generates a string that dictates the order in which the attributes are presented. E.g. if the string begins with "acdb", question 1 will present the profile with the characteristics ordered as follows: attribute 1, attribute 3, attribute 4, attribute 2.

In the questions themselves (just question 1 here), I reference the profile list generated in H0 and pull the appropriate substring from the profile text in the default answer of H1. I then reference the string generated by H2 and arrange the rows/attributes in the appropriate order.

I have unhidden H0, H1, and H2 for troubleshooting purposes. Here's a screenshot: 
 

These are the issues I've been having (that I didn't deal with in my last conjoint experiment):

1. My reference to H0 doesn't work unless I manually enter a character after the string that is generated. Once I do this, Question 1 shows the profiles it should be presenting based on the first 6 characters of H0. Otherwise, it just presents profile 1 twice.

2. My reference to the attribute order in H1 isn't working at all. The attributes are presented in the same order every time.

3. The code to move the radio buttons into my table is not working.

4. All of these observations are based on previewing the question group. When I try to preview the entire survey, the page just continually refreshes and tries to proceed to the next page. 

I have extremely limited knowledge of JavaScript (and HTML) so I apologize in advance if any of this is really obvious, I've been trying to figure it out on my end but no luck. I am also wondering if it has to do with using "{source}" rather than "Script" for my code in the questions; the last survey I made didn't have "Script" as an option and I haven't found anything explaining the difference.

I know this is a lot of questions, thank you so much in advance for any help!
  • tpartner
  • tpartner's Avatar
10 Jan 2024 18:01
Replied by tpartner on topic Custom CSS and Javascript
Did you read the line about disabling the XSS filter?

Go to Global settings --> Security and set "Filter HTML for XSS" to "Off".

  • holch
  • holch's Avatar
10 Jan 2024 15:11
This is not a Limesurvey issue, but rather a HTML issue or an issue of your website. Limesurvey just shows up in your iframe, that's it. To close / hide the iframe, you need to do through your website, e.g. set a cookie and based on the cookie you show/hide the iframe with the survey. You won't find a setting for this in Limesurvey, because there is no setting in limesurvey and there can't be a setting in Limesurvey. The site shown in an iframe has no control over the iframe. This would be a serious security issue. Imagine a website that is shown within an iframe could manipulate your website.
  • Orbit-Reiter
  • Orbit-Reiter's Avatar
09 Jan 2024 13:55
Replied by Orbit-Reiter on topic Text editing options missing completely
Hm, it's back and working fine again.

I cleared the Asset Cache and set the standard HTML editor mode to HTML-Source, saved and then back to embedded.

I suppose it was the latter that did it. It was originally set to embedded so I figured that's not it.
  • Orbit-Reiter
  • Orbit-Reiter's Avatar
09 Jan 2024 09:16
Text editing options missing completely was created by Orbit-Reiter
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.4.1
Own server or LimeSurvey hosting: own server
Survey theme/template: fruity
==================
Hello!
Since the update from 6.3.9 to 6.4.1 all the text boxes are missing the symbols for editing the text (don't know how it is called). All text (for example the question text) is shown as HTML. See the attached picture. It concerns all boxes (welcome text, description, etc.).
Is this a new feature or a bug? I didn't find anything in the settings. Is it just me? I tried with 3 different browsers and it's always the same.

Thank you!
  • NandoK
  • NandoK's Avatar
08 Jan 2024 17:24 - 08 Jan 2024 17:27
Replied by NandoK on topic Edit Theme Crash
i fixed the TemplateManifest.php after i got the same error , if a survey has no description

method --> getDescription

$sDescription = $this->config->metadata->description;

if ($sDescription === null) {
$sDescription = 'no description available';
}

// If wrong Twig in manifest, we don't want to block the whole list rendering
// Note: if no twig statement in the description, twig will just render it as usual
try {
$sDescription = App()->twigRenderer->convertTwigToHtml($sDescription);
} catch (\Exception $e) {


best
regards
Nando
 
  • lea_crtl
  • lea_crtl's Avatar
08 Jan 2024 15:30 - 08 Jan 2024 15:42
You're right, my question codes are A1 and A2... I changed the equation from {if(daltonisme == 'Non', 'std_', 'cb_')} to {if(daltonisme == 'A2', 'std_', 'cb_')} and now the typecartes variable takes the right value. But I'm still unable to load an image using this variable...
My script is:
<script>
<img alt="" height="400" src="/upload/surveys/248689/images/{typecartes}phase1_11.png" />
</script>

EDIT
: I figured out that I don't need to use the <script> flare since this is html code and no JS... Sorry for this beginner mistake and thanks a lot for your help. Everything works smoothly now.
Displaying 91 - 105 out of 4728 results.

Lime-years ahead

Online-surveys for every purse and purpose