Welcome to the LimeSurvey Community Forum

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

Change the text of the note with the exclamation mark

  • irismpi
  • irismpi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 10 months ago #201796 by irismpi
I have an Array (text) with 5 answer fields and I want people to fill in at least 3 words.
If I go to “logic” I can set the Minimum number of answers to 3.
Above the question you will get an exclamation mark and the note that a minimum of at least 3 answers is required.


My question:
Is it possible to change the text of this note? For example: instead of “vul minstens 3 antwoorden in” I would like to change this text into “Vul minstens 3 dierennamen in”

And if this is not possible.
Is it possible to still set Minimum number of answers to 3, but then without showing any note? So no additional text and no exclamation mark above the question.
Attachments:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #201799 by tpartner
Use a question validation equation and tip instead of the minimum-answers setting.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu, irismpi
The topic has been locked.
  • irismpi
  • irismpi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202019 by irismpi
So I managed to change the text of the note with the excalamtion mark! Yeah :)

But I still struggle a bit with the validation equation. Can someone tell me what i am doing wrong?

I'm using question-type: Array (text)

My subquestions look like this:
Y-axis: SQ00A
X-axis: SQ001
SQ002
SQ003
SQ004
SQ005

(see also attached Picture 1)

My validation equation looks like this:
(!(is_empty(S01_SQ00A_SQ001) and is_empty(S01_SQ00A_SQ002) and is_empty(S01_SQ00A_SQ003)))

(see also attached Picture 2)

People should give at least 3 answers (and a maximum of 5 answers) before they can continue. They should be allowed to click on "next" when they have given a minimum of 3 answers.
However, If I click on "preview survey" I now need to fill in all 5 text-boxes before I can click on "next".
How do I change this?

(see also attached Picture 3)
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202025 by DenisChenu
Hard to know : maybe your question are mandatory ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • irismpi
  • irismpi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202031 by irismpi
Yes, my question is set to mandatory, because I don't want people to click on next before they have filled in at least 3 answers.

I just changed the setting of the question to "not mandatory" and clicked on "preview survey" to see if that would fix the problem.
Result: it is now not possible to click on next when I have filled out zero answers.
But is is possible to click on next when I have given 1 answer. This should be 3!

So, changing the question to "not mandatory" kind of fixed the problem that people don't have to give 5 answers anymore. But I would like them to still use at least 3 answers before they can click on next.
How do I do this?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 months ago #202036 by DenisChenu
(!(is_empty(S01_SQ00A_SQ001) and is_empty(S01_SQ00A_SQ002) and is_empty(S01_SQ00A_SQ003)))

Here : you ask S01_SQ00A_SQ001 was NOT empty AND S01_SQ00A_SQ002 WAS empty AND S01_SQ00A_SQ003 WAS empty

Maybe best can be count(S01_SQ00A_SQ001,S01_SQ00A_SQ002,S01_SQ00A_SQ003) == 3

But more cleaner :
count(self.NAOK) >= 3

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • irismpi
  • irismpi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #202037 by irismpi
Thank you so much!

count(self.NAOK) >= 3 solves everything!
And it's much easier than I thought it would be.

Perfect :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose