Change the text of the note with the exclamation mark

More
1 month 2 weeks 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:

Please Log in to join the conversation.

LimeSurvey Partners
More
1 month 2 weeks 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.
Official LimeSurvey Partner - partnersurveys.com
The following user(s) said Thank You: DenisChenu, irismpi

Please Log in to join the conversation.

More
1 month 2 weeks 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)
Attachments:

Please Log in to join the conversation.

More
1 month 1 week 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.

Please Log in to join the conversation.

More
1 month 1 week 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?

Please Log in to join the conversation.

More
1 month 1 week 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.

Please Log in to join the conversation.

More
1 month 1 week 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 :)

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now