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.
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.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
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?
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.
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.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.