Welcome to the LimeSurvey Community Forum

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

Detect if question is answered

More
6 years 4 months ago #184012 by DenisChenu

DenisChenu wrote:
EDIT : with or witout ajax mode : it don't work when reload or try to submit

Git it,

Since self.question seems broken when reload : JS .question broken, then using it as static var.
Code:
{% set questionCount = processString("{count(self.question)}",1,1) %}

Proof of concept (i deactivate setCustomValidty) : demo.sondages.me/483539 .

After : some other need to be done
- Other is inside .question but are not always mandatory.
- Array filter : maybe using .relevanceStatus and not .question can fix this issue ? Unsure what happen for _other.relevanceStatus and _comment.relevanceStatus

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose