Welcome to the LimeSurvey Community Forum

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

Search Results (Searched for: validation)

  • Joffm
  • Joffm's Avatar
28 Jun 2023 12:12
Replied by Joffm on topic Array question
Hi,
here your survey back.
I show three options.
1. With a timepicker. To be honest, I do not like it.
It is too large and you have to click and click and click to enter a time.
 

2. With the input mask library of Robin Herbots
[url] github.com/RobinHerbots/Inputmask [/url]
 

3. With the input mask library of Igor Escobar
[url] igorescobar.github.io/jQuery-Mask-Plugin/ [/url]
 

Both with validation
 

 

And here the lss
 

File Attachment:

File Name: limesurvey...6-28.lss
File Size:66 KB



By the way: In my opinion you should remove all dropdowns and let the respondents enter plain numbers that you validate (as in Q1)

Joffm

 
  • robdi123
  • robdi123's Avatar
14 Jun 2023 15:14
Help validating a field was created by robdi123
Please help us help you and fill where relevant:
Your LimeSurvey version: [url=https://10.69.76.49/encuestas/index.php/admin/index#modalSystemInformation]5.4.11[/url]
Own server or LimeSurvey hosting: own server
Survey theme/template: vanilla
==================
Hi, how can i do a validation between a field and bd?
i have a field called Email, the thing is i want to validate that no one else in te past do the survey with the same email.

Thanks!
  • DenisChenu
  • DenisChenu's Avatar
  • DenisChenu
  • DenisChenu's Avatar
12 Jun 2023 10:42
{strpos(join("#",Q1.NAOK)) < 1)} ou {!strpos(join("#",Q1.NAOK)))}

pregmatch devrait passer aussi, à tester {!preg_match('/arbre/i', Q1.NAOK)}

1. La formule est entourée de { }, sinon : tu ne remonte que la variable.
2. .NAOK si la question est masquée
3. LimeSurvey ne connaît pas la différence entre == et === donc on ajoute 1 caractère au début pour ne pas remonter 0.
  • DenisChenu
  • DenisChenu's Avatar
08 Jun 2023 15:17
Replied by DenisChenu on topic Edit integrated pop-up text
Can be updated in javascript

But don't think it's a good idea.

stackoverflow.com/questions/13798313/set...d-validation-message
  • amilcar_pg
  • amilcar_pg's Avatar
06 Jun 2023 23:38
Thanks for your advice Joffm!

I'll do as you suggested.
  • Joffm
  • Joffm's Avatar
06 Jun 2023 22:14
Hi,
the best is to split the group into 6 groups, each with three questions
Text display to display th image
multiple numeric
multiple nuumeric for the ageguess
you may merge the questions with the css classes "no-question" and "no-bottom"
The randomization by randomization group name and by random number stay the same, only on group level.
This way you can limit the ranges by the settings without the need of validation,

Otherwise you have to validate each subquestion, like
RostoHa_study.NAOK<11 and RostoHa_honest.NAOK<11 and... and RostoHa_ageguess.NAOK<100

Joffm
  • Doanlowd
  • Doanlowd's Avatar
06 Jun 2023 19:10
Aidez-nous à vous aider et remplissez les cases appropriées :
Votre version de LimeSurvey : Version 3.22.210
Votre propre serveur ou LimeSurvey Cloud : serveur pro
Thème :

==================

Bonjour à tous, 
Je souhaiterais savoir quelle formule utiliser, dans l'encart de validation de ma question, afin que la réponse soit considérée invalide si un mot en particulier (disons le "arbre") est présent.

J'ai essayé plusieurs alternatives, à savoir :
  • {Q1} != 'arbre'
  • !preg_match('/arbre/i', "{Q1}")
  • strpos("{Q1}", "arbre") === false
Je suis complètement novice sur ces histoires de code et ne sais même pas si ces propositions font sens ou non. J'ai bien entendu remplacé lors de ma saisie le Q1 par le code de ma question. Mais cela ne marche pas, les réponses étant toutes invalidées quelque soit le texte saisit.

Auriez-vous une idée de ce qui ne va pas, ou une idée de solution alternative ?

Merci par avance.
  • amilcar_pg
  • amilcar_pg's Avatar
05 Jun 2023 22:52
Sorry about that holch.

It's own server, not hosted by LimeSurvey.
  • amilcar_pg
  • amilcar_pg's Avatar
05 Jun 2023 22:50
Dear Joffm ,

Sorry about the wrong file.

Im attaching the one you've asked for.

thanks in advance for your assistance.

If you need anything else, please let me know.
  • holch
  • holch's Avatar
05 Jun 2023 21:42

Own server or LimeSurvey hosting: YES


This is a good one. Haven't seen this before.
  • Joffm
  • Joffm's Avatar
05 Jun 2023 21:24
Please neither provide lsq nor lsg exports, only lss.

Copy the survey, remove everything not related to your question, send as lss.

lsg and lsq exports are language sensitive.
So we have to create a survey, guess the base language of your export, to be able to import.
Furthermore the surveywide settings are missing which may be important.

Please ease the work of us volunteers.

Joffm 
  • amilcar_pg
  • amilcar_pg's Avatar
05 Jun 2023 20:01
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.3.6+220321
Own server or LimeSurvey hosting: YES
Survey theme/template: Vanilla
==================

Dear colleagues,

On the following question group I have 6 questions and another hidden one. My goal is that when the hidden one randomly selects 1, only men's photos will be shown, and when it shows 2, women's ones. This is working perfectly. On top of that, I also want the order to be randomized, that's also working, with the "Randomization group name". However, inside each question I need two things that I'm not being able to program as desired:

1. I need the options to be randomized, however, "ageguess" must be fixed at the end;
2. I need the validation data from all the subquestions, but ageguess, to support numeric values from 0 to 10, and when the subquestion is "ageguess", I must admit values from 0 to 99.

I'm attasching the .lsg file. If anyone needs any other information, I'm available.

In order for the attachement to fit in here, I've removed the photos. The survey was programmed in brazilian portuguese as well.

Thanks in advance for your assistance.

Best,
  • NoemieD
  • NoemieD's Avatar
02 Jun 2023 11:09
Replied by NoemieD on topic Format de validation de question
Merci infiniment Joffm, c'était l'information qu'il me manquait !

Tout fonctionne à présent ^^

Merci à tous les deux pour ces réponses super rapides,

Noémie
  • Joffm
  • Joffm's Avatar
02 Jun 2023 10:44
Replied by Joffm on topic Format de validation de question
Sans rien considérer d'autre :
Dans LimeSurvey, le format est
/^(19)[0-9]{2}|(20)[0-2][0-9]$/
 

regex101 ajoute la barre oblique automatiquement
 

Joffm
Displaying 151 - 165 out of 172 results.

Lime-years ahead

Online-surveys for every purse and purpose