Number of upload depending on answers

More
1 month 1 week ago #215842 by Cleverly
Hi!
I would like to determinate the number of uploads depending on previously answered questions. Example: there are 3 Y/N questions Q1 to Q3.  Depending on the number of Y, a certain number of uploads should be necessary. So if Q1 == Y, Q2 == N, Q3 == Y. -> There must be 2 Uploads f.e.

Is this possible?

Best regards!

Please Log in to join the conversation.

More
1 month 1 week ago #215854 by tpartner
Try this in the "Maximum number of files" setting: count(Q1, Q2, Q3)

- manual.limesurvey.org/Question_type_-_Fi...m_number_of_files.29

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
1 month 1 week ago #215857 by Cleverly
thank you! but, ... in my case it isn't that easy i think.

i ask people 1) whether they have invalidity or not (Y/N question) and 2) if they are from a third country I need the residence permit (folding box with answer "third country")
Also I always need a passport copy.
So i want to force that there are at least 1 or 2 or 3 uploads, depending on the answers to invalidity and nationality.

Maybe there is a solution using a thing like {countif(Q1 == "Y", ...)+1} ? i never worked with such expressions before...

Please Log in to join the conversation.

More
1 month 1 week ago #215864 by DenisChenu
sum(
intval(Q1.NAOK == "Y")

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.

Start now!

Just create your account and start using Limesurvey today.

Register now