- Posts: 965
- Thank you received: 218
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Dynamic text in "Maximum value" of numerical question.
- tammo
- Topic Author
- Offline
- Official LimeSurvey Partner
Less
More
6 years 10 months ago #155540
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Dynamic text in "Maximum value" of numerical question. was created by tammo
Would it be possible to have the current year as the maximum value in a numerical question? How would I configure that?
I need to have people filling in the year their house was built...
Thanks in advance,
Tammo
I need to have people filling in the year their house was built...
Thanks in advance,
Tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11639
- Thank you received: 2737
6 years 10 months ago #155552
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Dynamic text in "Maximum value" of numerical question.
I think this is rather a "Can I do this with Limesurvey" question than about "installation and update issues". So I'll move it to the correct forum.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
6 years 10 months ago - 6 years 10 months ago #155565
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Dynamic text in "Maximum value" of numerical question.
Place this in the "Question validation equation" field:
And, something like this in the "Question validation tip" field:
Sample survey attached:
Code:
this <= date('Y')
And, something like this in the "Question validation tip" field:
Code:
{if(this <= date('Y'), 'Okay', 'Try again!')}
Sample survey attached:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
Last edit: 6 years 10 months ago by tpartner.
The topic has been locked.