Set file upload maxfiles value from another question

Mehr
2 Wochen 2 Tage her #168233 von ptorterolo
ptorterolo erstellte das Thema Set file upload maxfiles value from another question
Dear Limesurvey Forum

I have a survey where I'm asking how many people are in a group (list question from 3 to 8, code P01). In the next question, I need to request an individual resume for each person in the group, so the maxfiles value in the file upload question (P02), will need to be the same as the previous response.

If I use P01.shown as value in the maxfile input, it shows me the correct number in the label, but it doesn't work.

Using the chrome inspector I can see that the maxfiles value is 0.

Could you help me?
Thanks

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Wochen 2 Tage her - 2 Wochen 2 Tage her #168234 von holch
holch antwortete auf das Thema: Set file upload maxfiles value from another question
I think .shown gives you probably a string, not a number. What about using the question code for the number? This should give you an integer and LS should be able to work with it.

So if you just use P01 (assuming that the answer codes are 1, 2, 3, 4, 5 and not something like A1, A2, A3, A4) and see what happens.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
Letzte Änderung: 2 Wochen 2 Tage her von holch.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Wochen 2 Tage her #168235 von davebostockgmail
davebostockgmail antwortete auf das Thema: Set file upload maxfiles value from another question
Wouldn't P01.value return the integer if it is a numeric? and if it is a dropdown then the code which would correspond to the text value but as a number?

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Wochen 2 Tage her #168238 von holch
holch antwortete auf das Thema: Set file upload maxfiles value from another question
P01.value is the assessment value. So it only works if the assessment values are set.

I think the easiest way is to put the answer codes the same as the number that is shown.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Wochen 2 Tage her #168240 von davebostockgmail
davebostockgmail antwortete auf das Thema: Set file upload maxfiles value from another question
Ahh right .. thanks

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Wochen 2 Tage her #168243 von ptorterolo
ptorterolo antwortete auf das Thema: Set file upload maxfiles value from another question
I tested it and it didn't work. I changed the answer codes to 1,2,3...and it's the same. In the front you'll see the correct label, but when you're going to upload files, the maxfiles values is 0.

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Wochen 2 Tage her #168252 von holch
holch antwortete auf das Thema: Set file upload maxfiles value from another question
Can you export a little test survey with only the relevant questions included as a LSS file and upload it here?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Wochen 2 Tage her #168257 von ptorterolo
ptorterolo antwortete auf das Thema: Set file upload maxfiles value from another question
Sure!
Anhang:

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Wochen 2 Tage her #168276 von holch
holch antwortete auf das Thema: Set file upload maxfiles value from another question
Seems like this field does not allow Expressions. Have a look at my screenshot: it actually requires that you put numbers or go up and down with the little arrows.

There was no EM code stores in the field in your survey anyway.


I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
Anhang:

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Wochen 2 Tage her #168277 von Joffm
Joffm antwortete auf das Thema: Set file upload maxfiles value from another question
As a simple workaround just create as many fileupload questions as the maximum number is.

Display them with relevance equations.

E.g. fileupload2, if P01>1, fileupload3, if P01>2, ...

Joffm

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Wochen 1 Tag her #168337 von ptorterolo
ptorterolo antwortete auf das Thema: Set file upload maxfiles value from another question
According to the limesurvey docs, the File Upload Question allow EM.
Anhang:

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Wochen 1 Tag her #168338 von ptorterolo
ptorterolo antwortete auf das Thema: Set file upload maxfiles value from another question
Yes, I could do that, but I was trying to make it dynamic.
Thanks

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Mehr
2 Wochen 1 Tag her #168339 von holch
holch antwortete auf das Thema: Set file upload maxfiles value from another question
Well, than this is either a mistake in the manual or this is a bug. Because my Limesurvey only accepts numbers and nothing else.

Does your EM code save? I can't even input letter.

I guess this means that you need to create a bug report.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Bitte Anmelden oder Registrieren um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha