Change the label set of a question depending on an attribute

More
4 weeks 16 hours ago #177005 by josegovia
josegovia created the topic: Change the label set of a question depending on an attribute
Hello

I would like to change the label set of a matrix question, depending on an attribute of the respondents table.

I have 4 different label sets and they are the same size in both sub questions and answer options.

Do you know how I could do it?

Thank you

José

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

More
4 weeks 9 hours ago #177026 by tpartner
tpartner replied the topic: Change the label set of a question depending on an attribute
You cannot directly change the label set. You could use conditional tailoring/piping - manual.limesurvey.org/Expression_Manager#Tailoring.2FPiping

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu, josegovia

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

More
3 weeks 4 days ago #177078 by josegovia
josegovia replied the topic: Change the label set of a question depending on an attribute
Thank you.

I'm going to try it.

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

More
3 weeks 4 days ago #177099 by josegovia
josegovia replied the topic: Change the label set of a question depending on an attribute
I'm sorry, but I'm not able to do it.

I have attribute_1 with these options, 1, 2 or 3, and I need to change the text of a subquestion depending on what appears in the attribut_1.

For example,

If attribute_1 = 1 then the question "P1Coment" and the sub-question "Coment2" = "Cow"

If attribute_1 = 2 then the question "P1Coment" and the sub-question "Coment2" = "Sheep"

If attribute_1 = 3 then the question "P1Coment" and the sub-question "Coment2" = "Horse"

How can I do it?

Thank you

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

More
3 weeks 4 days ago #177108 by jelo
jelo replied the topic: Change the label set of a question depending on an attribute
Please export a surveyfile (LSS) with the relevant questions and state the version of LimeSurvey you use.

Are you a student conducting a survey? If yes, tell me why you use LimeSurvey?
www.limesurvey.org/forum/development/116...y-you-use-limesurvey

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

More
3 weeks 2 days ago #177220 by josegovia
josegovia replied the topic: Change the label set of a question depending on an attribute
I have found a solution and it is to put the texts of the sub-questions as attributes in the table of tokens.

Thanks for listening.

a greeting

José

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!