Change the color of a group (inside an index)

More
3 weeks 1 day ago #177311 by seccalisca
seccalisca created the topic: Change the color of a group (inside an index)
Good evening to everyone,
I'm creating questionnaires that have very long and complex questions (divided into groups).

The questionnaire displays the group index to allow the user to move from group to group faster.

Since the questionnaire is nominative, and it is very probable that the user completes it several times, my client asked me if it is possible to report to the user the sections already compiled, perhaps changing the color of the group within the index .

Does anyone know if there is a control or a parameter that I can query to understand / set the group's completion status?

The only method that came to my mind is a sort of mega equation of relevance but I'm not even sure it will work, so I wanted to ask first.

The version of Limesurvey in use is this: 2.05+ Build 141229, but in any case it is also good to accept recommendations for later versions (3.x)

Thank you all

Please Log in or Create an account to join the conversation.

More
3 weeks 17 hours ago - 3 weeks 17 hours ago #177335 by DenisChenu
DenisChenu replied the topic: Change the color of a group (inside an index)
With index full : there are already css difference with
- group with some unanswered question

in 2.6lts (unsure in 2.05) :
#index .missing {/* you css */}
in template.css

In 3.X (if there are no current issue), you have too
- group with error

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 3 weeks 17 hours ago by DenisChenu.
The following user(s) said Thank You: seccalisca

Please Log in or Create an account to join the conversation.

More
3 weeks 10 hours ago #177379 by seccalisca
seccalisca replied the topic: Change the color of a group (inside an index)
Thank you very much!
It works!

I've added this single row:

#index .missing {color:/*your preferred color */; }

and now the questionnaire starts with the section titles in the color I have set.
Every time a section is completed (even without validation) the color of the corresponding menu item returns to the default value

Perfect.

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #177913 by wujinwen
wujinwen replied the topic: Change the color of a group (inside an index)
请问每个组的索引是怎么实现的?非常感谢!^_^

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!