Welcome to the LimeSurvey Community Forum

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

Number of upload depending on answers

  • Cleverly
  • Cleverly's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 11 months ago #215842 by Cleverly
Number of upload depending on answers was created 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!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 11 months ago #215854 by tpartner
Replied by tpartner on topic Number of upload depending on answers
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.
The topic has been locked.
  • Cleverly
  • Cleverly's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 11 months ago #215857 by Cleverly
Replied by Cleverly on topic Number of upload depending on answers
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...
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 11 months ago #215864 by DenisChenu
Replied by DenisChenu on topic Number of upload depending on answers
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.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose