Welcome to the LimeSurvey Community Forum

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

Search Results (Searched for: validation)

  • ralfkunze
  • ralfkunze's Avatar
08 Dec 2023 08:47
Thanks again for the push... I updated now and you were right: now I can see the survey logic file.
Also a great suggestion to set up GIT - I really gonna do it!

Furthermore I am a little confused: I received an Email from the forum which says, that Joffm posted a message but I cannot find that message in the thread:

A new reply has been posted on the LimeSurvey Forums
Please enable images to view this content
Message Subject : Survey logic file at sample survey LS3 shows error

Category : Can I do this with LimeSurvey?

Posted by : Joffm

URL : forums.limesurvey.org/forum/can-i-do-thi...rvey-ls3-shows-error

Message:
Hi,

But if I cannot change the conditions in the survey logic file - where do I find them?

and 
I found the validation by attributes after a long search finally in the question - Condition designer.


Don't you see it here?
Let's take question "afAMF"
In the overview you see this
 
The min and max  number of answers is tay<ken from question "minselect" and "maxselect"
and the range from questions "num" and "num2"

This you see here
 
and here
 

Now the Regular expression
In question "vS" you see in the overview
 
and the RegEx is entered here
 


Niw "Condition Designer"???:
In this sample survey there are no conditions on questions at all.
All questions are shown. So no conditions referring to resilts of previous questions.

If you see something different, you should show ar least a screenshot.


But as I understood your main problem is the not showing "survey logic file".
That's unpleasant, but as it is only an overview of what you see (better) in the questions themselves.


Joffm

How can this happen? 
And unfortunately I cannot follow the suggestions because the mail does not show the inserted screenshots. 
Or let's try it like this: Joffm, could you please post your last message again? 
Thanks, Ralf 
  • ralfkunze
  • ralfkunze's Avatar
07 Dec 2023 09:01
Thanks for the answers so far and I found out in the meanwhile that I can access (parts of) the survey logic file in the question groups and the questions itself.
But if I cannot change the conditions in the survey logic file - where do I find them?
Let's use the example from Joffm, question num. It has a validation by attributes and a regex validation.
I found the validation by attributes after a long search finally in the question - Condition designer.
But where do I find the regex validation? In question - Condition designer the option RegEx is greyed out, the input validation field inside the question it is empty (Joffm: Eingabevalidierung is empty). The question group has no condition designer... I just cannot find it! Can you guys point me in the right direction?
Ralf
  • Joffm
  • Joffm's Avatar
06 Dec 2023 15:21
This sample survey does not use any "question validation equation"

It shows validation by attributes
 
and regular expression
 
entered in "Eingabevalidierung"
 

And you see, I do not see any issue opening the logic file (version 5.6.40)

Joffm
  • ralfkunze
  • ralfkunze's Avatar
06 Dec 2023 12:19
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.5.1
Own server or LimeSurvey hosting: own
Survey theme/template: own based on Bootwatch
==================
Hello, 
I am trying to get deeper into ExpressionScript und for this reason I loaded the sample survey LS3_Validation_tests.zip from this  page . I can open everything and see the survey - but I guess that all the settings are in Survey logic file, right? At least I cannot see any expressions in the questions. 
But when I try to open the Survey logic file, I get an error (see attachment). 

My questions:
Are all the expressions really in Survey logic file?
Are there any other ways to open it? (I am trying to open it via Survey - Tools - Survey logic file)
Thanks 
Ralf
 
  • DenisChenu
  • DenisChenu's Avatar
04 Dec 2023 08:50
We already answer on the way to do : statCount(QuestionCode.sgqa, 0, 0) < 1

in manual.limesurvey.org/Question_type_-_Nu...28em_validation_q.29

remind : test was done only in PHP, then when move next.

Maybe if you want to show the next number to take are to construct an plugin to show the max number used currently …
  • atavei
  • atavei's Avatar
02 Dec 2023 16:08
Please forgive me. I did not see the request for information related to the posting. Here it is:
LS version 6.3.7
Self-hosting
Fruity 23
==============

Perhaps my question to the forum was not clearly formulated. Context is everything and I provided very little of it.

We are using LS  as a data entry tool for a paper and pencil survey. Different people at different locations will be entering data, and they will not have access to the data entry screen in the administration area. They will use a "regular survey" to enter de data. The first question in the survey is the questionnaire id and it is a number already assigned to the paper questionnaire. I want to use a numeric question because of the different validation options it provides.Yet, besides those validation checks already available in this type of question, I need  to validate that a questionnaire id number has not been already entered, perhaps by mistake. The person entering the data should receive an alert message if the questionnaire id number has already being used. The person should also be requested to check if there was an error entering the id number, and if not, to go to the survey manager to solve the issue. Something like that should be the workflow.

Any help is welcomed. Please forgive me if the question was not correctly formulated in the original post. Thank you.
  • Joffm
  • Joffm's Avatar
30 Nov 2023 19:09
Bonjour,

J'ai tenté de rajouter une question cachée en lui donnant comme code de validation : {TOTAL} / 6 mais ça ne fonctionne pas.

Règles d’évaluation ne sont pas stockées dans les données

Vous devez utiliser ExpressionManager, mais vous pouvez utiliser votre Valeur de l'évaluation
[url] manual.limesurvey.org/ExpressionScript_-...C3.A8s_aux_variables [/url]

Par exemple:
{sum(Q1.valueNAOK,Q2.valueNAOK,Q3.valueNAOK,...)/6}

Joffm
  • DREAL69
  • DREAL69's Avatar
30 Nov 2023 15:50
Aidez-nous à vous aider et remplissez les cases appropriées :
Votre version de LimeSurvey : Version de votre LimeSurvey : 2.73.0.
Votre propre serveur ou LimeSurvey Cloud :
propre serveur, MTE/MTECT
Thème : Récupération du score du répondant pour vérifier rapidement le nombre de quiz justes
==================
Bonjour,
J'ai préparé un quiz test avec l'option "Evaluations" afin de pouvoir identifier les trois premiers gagnants (qui seront récompensés).
J'ai donc ajouté une valeur de 0 ou 1 point selon que les réponses proposées étaient justes ou fausses.
J'ai ajouté une règle d'évaluation sur mon groupe de questions afin de pouvoir fournir le score aux répondants une fois qu'ils auront complété et validé le quiz en cliquant sur le bouton "Envoyer".
Je voudrais, pour dépouiller plus facilement (potentiellement plus de 500 répondants), pouvoir disposer dans l'export des réponses du total de points par répondant.
J'ai tenté de rajouter une question cachée en lui donnant comme code de validation : {TOTAL} / 6 mais ça ne fonctionne pas.
J'ai consulté tous les sujets du forum français et les guides d'utilisation sans trouver de réponse à ma question.
Comment puis-je m'en sortir ?
Je vous remercie par avance pour votre aide.

Isabelle
  • DenisChenu
  • DenisChenu's Avatar
29 Nov 2023 15:44 - 29 Nov 2023 15:46
Replied by DenisChenu on topic Problema ao tentar exibir iframe!
samesite for cookieParams and
Code:
sameSite
for csrfCookie
www.sondages.pro/iframe/
Code:
        'session' => array (
            'sessionName' => "SPDemo",
            //~ 'class' => 'application.core.web.DbHttpSession',
            //~ 'connectionID' => 'db',
            //~ 'sessionTableName' => '{{sessions}}',
            'cookieParams' => array(
                'secure' => true,
                'httponly' => true,
                'samesite' => 'None',
            ),
        ),
        'request' => array(
            'enableCsrfValidation'=>true,
            'csrfCookie' => array(
                'sameSite' => 'None',
                'secure' => true,
            ),
        ),

And Please : don't open an issue about this, LimeSurey GMBH want to delete this part from manual.
  • seppel
  • seppel's Avatar
22 Nov 2023 11:07 - 22 Nov 2023 11:10

Oder wie stellst Du Dir dies vor?


 
Ok, ich komm da gerade nicht mit...

Die Befragung dient als Abfrage von Setup-Einstellungen. In dem Sinne wird Limesurvey etwas missbraucht.
Das Projekt hat nichts mit eine Befragung zu tun, sondern mehr mit einem Abfragen (inklusive einer zwingend notwendigen Eingabe-Validation)

Das Ergebnis jeder Antwort wird und soll deshalb individuell sein. An einer Gesamtauswertung besteht kein Interesse und wäre in dem Projekt gar nicht möglich.

Mein Problem zeige ich nun mal Anhand von Bildern.
So sieht der Fragepunkt während der Befragung aus (genannt wurden nur 2 Gruppen und 2 Benutzer):
 

Wenn dann am Ende der Befragung auf "Antworten ausdrucken" gegangen wird, sieht der Punkt so aus:
 

Leider sieht es ebenso beim Admin aus. Es ist somit nur noch für den Ersteller des Projektes erkennbar, was denn in der Frage ausgewählt wurde.

Warum sieht es nicht genauso in dem Ergebnis aus, wie der Benutzer in der Anzeige bekommen hat?
Für mich lauert hier ein Bug. Die exakt gleiche Variable wird in den Antworten korrekt aufgelöst, sobald sie an anderer Stelle (z.B. in dem Fragefeld) verwendet wird.
  • DenisChenu
  • DenisChenu's Avatar
17 Nov 2023 12:09
Replied by DenisChenu on topic A
OK : c'est inclus dans limesurvey (j'avais compris pour l'envoi).

On l'a utilisé lors de la conception du plugin (qui avait 3 questionnaires au total : 1 demande, une pré-validation avec retour + 1 validation finale) pour l'envoi de la confirmation (ou du refus) final.

manual.limesurvey.org/Notifications_%26_..._Notifications_Email

Tu dois récupérer le mail de la personne inscrite dans le premier questionnaire (question équation : MAILINSCRIT : {TOKEN:EMAIL} par exemple)

Ensuite : ENVOIMAIL : equation {if(zone1=='Y',MAILINSCRIT,'')}
Et dans les notifs admin : {ENVOIMAIL}
  • aKelley
  • aKelley's Avatar
15 Nov 2023 17:35
Replied by aKelley on topic Rank order questions double pass through
Thanks for clarifying on the second pass on how to fix the validation.

We would use the survey to generate a report so I imagine the second calculation would be helpful as well. I will ultimately need to know how to rank all 4 categories based on the two rounds of responses.

As far as a tie, you bring up an interesting point. A, E, R, X are 4 categories but someone who scores high in A should not score high in X. In the example you gave, I would choose A because E is higher than R showing that they are more likely on the lower end of the 4 categories. Ideally, people would score in group X. I'm unsure how to resolve a pattern of 5, 2, 5, 2, or 5, 2, 2, 5. I need to think more about it.
  • Joffm
  • Joffm's Avatar
15 Nov 2023 17:25 - 15 Nov 2023 17:37
Replied by Joffm on topic Rank order questions double pass through
Sorry,
add  ".NAOK" to the validations of the second pass -> unique(self.NAOK)
And validate all of them!

would I need I second group calc after the second round of questions to determine the highest and lowest score of the group 2 questions?

I do not know your goal.
Do you want to use this in the survey?
Is it sufficient to calculate during analysis?

On the other side it is rather easy.
Nearly the same as the first calculations.
Now you know how to use the "countif" function
Like
Most2A : {countif("SM",Q1b_A.NAOK,Q2b_A.NAOK,Q3b_A.NAOK,Q4b_A.NAOK)}
...
Least2X : {countif("SL",Q1b_X.NAOK,Q2b_X.NAOK,Q3b_X.NAOK,Q4b_X.NAOK)}
And the rest.

But did you consider how to handle ties?
You may get a distribution like this
MostA: 5
MostE: 3
MostR: 1
MostX: 5
What to do?

Joffm

By the way:
 {if( 0 > round(sum(((15 - LeastA)/15)*100),0), 0, round(sum(((15 - LeastA)/15)*100),0) )}

What do you sum here?
sum(((15 - LeastA)/15)*100)

How can this result be less than 0?
if( 0 > round(sum(((15 - LeastA)/15)*100),0),
You only have 14 items (in your sample survey), so LeastA can be 14, but not more, so the least (rounded) value is 7.
 
  • Joffm
  • Joffm's Avatar
08 Nov 2023 21:05
Replied by Joffm on topic Info-Icon anzeigen
Naja,
wenn Du Dir die config.xml genau ansiehst, bemerkst Du, dass dieser gesamte Block umrandet ist mit "default data"
Alle diese Einstellungen sind für die Anzeige der Vorschau im Theme-Editor zuständig, für nichts anderes.
Ich habe einmal etwas hart gecodet.
 

Dahingegen siehst Du, dass das Zeichen in einer Umfrage (wenn Du das Webdevelopment tool Deines Browsers benutzt) hier definiert ist.
 

Zeile 204 der "theme.css".
 
Stimmt.
Und wenn man dies ändern will, so überschreibt / ergänzt man diese Definition in der "custom.css".
Das ist kein "workaround", sondern so ist LimeSurvey gedacht.
Daher steht am Anfang der "theme.css" ja ganz groß "DO NOT TOUCH"

Die Lösung von oben funktioniert nicht, da damit auch der Hilfetext gestylt wird. Validation-Message und Hilfstext sehen somit gleich aus (was ich nicht möchte)


Das Dumme ist, dass dies in 6.x. in plain vanilla eben so ist.
 

Wenn Du das nicht willst, dann erweitere das theme und füge Deine Änderungen in der "custom.css" ein.
Hier einmal mit einem Händchen und rotem Text.
Der Hilfetext bleibt unberührt.
 

mit 
Code:
.question-valid-container .ls-questionhelp:before {
   content:"\f0a4";
}
.question-valid-container .ls-question-message {
    color:red !important;
}

Joffm
 
Displaying 61 - 75 out of 181 results.

Lime-years ahead

Online-surveys for every purse and purpose