Welcome to the LimeSurvey Community Forum

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

Change the label set of a question depending on an attribute

  • josegovia
  • josegovia's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 4 months ago #177005 by josegovia
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é
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 4 months ago #177026 by tpartner
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
The topic has been locked.
  • josegovia
  • josegovia's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 3 months ago #177078 by josegovia
Thank you.

I'm going to try it.
The topic has been locked.
  • josegovia
  • josegovia's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 3 months ago #177099 by josegovia
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
The topic has been locked.
More
5 years 3 months ago #177108 by jelo
Please export a surveyfile (LSS) with the relevant questions and state the version of LimeSurvey you use.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • josegovia
  • josegovia's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 3 months ago #177220 by josegovia
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é
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose