Welcome to the LimeSurvey Community Forum

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

How can I remove (or hide) the name of the respondent, from a list?

  • Usapuka
  • Usapuka's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 1 month ago #125984 by Usapuka
Hi,
For a social networks analysis survey I need to do the following: in a multiple choice question I´ll display a list with the names of all the employees except the name of the person who is responding - in the "original charged list" all names are present -. There will be a minimum of names to be chosen.
Thanks!
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 1 month ago #125989 by gabrieljenik
Hi,

I guess you are using tokens.
One approach would be to do some small script development, using Jquery to remove the related entry for the token being answered.

I have expertise in SNA.
If need help, please, contact me through Direct Message.

Thanks!

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
  • Usapuka
  • Usapuka's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 1 month ago #125993 by Usapuka
Hi gabrieljenik,

Thanks for your answer.
Yes, I´m using token and attributes.
Yes, that's the idea. Does anyone have the script developed?

Best regards!
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 1 month ago #126019 by gabrieljenik
Try with something like this: $("answer" + SQGA + " option[value='" + AnswerCode + "']").remove();

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
  • Usapuka
  • Usapuka's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 1 month ago #126036 by Usapuka
Hi gabrieljenik,
Thank again.
Sorry, but I don't have a clear idea of what to place in the script in relation with the respondent (to be hidden), whose information is in the token.

Best regards,
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
9 years 1 month ago #126042 by DenisChenu
If you use a multiple choice and the last 2.06 version : you can use Expression Manager for each line of your multiple choice question.

Then :
- Add an attribute with each "code" of sub question
- Set equation for each line : {TOKEN:ATTRIBUTE_1!="name01"}

Denis

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 following user(s) said Thank You: Usapuka
The topic has been locked.
  • Usapuka
  • Usapuka's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 1 month ago #126077 by Usapuka
Hi DenisChenu,
Sorry, but I can not do it work, please can you be so kind to expand and if possible exemplify your idea.
Thanks! Best regards.
The topic has been locked.
More
9 years 1 month ago #126078 by jelo

Usapuka wrote: Hi DenisChenu,
Sorry, but I can not do it work, please can you be so kind to expand and if possible exemplify your idea.

Are you using LimeSurvey 2.06?
If yes, you can use Denis idea.

You have the question, where all the subquestions are with the names of the persons.
You have the name of the person who is answering the survey in a token attribute. The subquestion with this persons name should not be shown when the same person is answering the survey.
To get this done, you can use the subquestion relevance fields, which are shown behind the subquestion texts (Limesurvey 2.06 and above).
The relevance equation is {TOKEN:ATTRIBUTE_1!="Name of person used in this subquestion"}
Make sure that the names in the token attribute are exactly written like in the equation.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: Usapuka
The topic has been locked.
  • Usapuka
  • Usapuka's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 1 month ago #126079 by Usapuka
Hi jelo,
Thank you! Now is working. I had to do one change: the relevance equation should be written without { }.
Best regards,
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
9 years 1 month ago #126086 by DenisChenu

Usapuka wrote: .... the relevance equation should be written without { }.

:cheer: You're totally right !

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: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose