- Posts: 61
- Thank you received: 4
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
- Topic Author
- Offline
- Senior Member
Less
More
8 years 5 months ago #125984
by Usapuka
How can I remove (or hide) the name of the respondent, from a list? was created 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!
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
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 272
- Thank you received: 45
8 years 5 months ago #125989
by gabrieljenik
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 .
Replied by gabrieljenik on topic How can I remove (or hide) the name of the respondent, from a list?
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!
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
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 61
- Thank you received: 4
8 years 5 months ago #125993
by Usapuka
Replied by Usapuka on topic How can I remove (or hide) the name of the respondent, from a list?
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!
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
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 272
- Thank you received: 45
8 years 5 months ago #126019
by gabrieljenik
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 .
Replied by gabrieljenik on topic How can I remove (or hide) the name of the respondent, from a list?
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
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 61
- Thank you received: 4
8 years 5 months ago #126036
by Usapuka
Replied by Usapuka on topic How can I remove (or hide) the name of the respondent, from a list?
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,
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
8 years 5 months ago #126042
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How can I remove (or hide) the name of the respondent, from a list?
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
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 service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: Usapuka
The topic has been locked.
- Usapuka
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 61
- Thank you received: 4
8 years 5 months ago #126077
by Usapuka
Replied by Usapuka on topic How can I remove (or hide) the name of the respondent, from a list?
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.
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.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
8 years 5 months ago #126078
by jelo
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
Replied by jelo on topic How can I remove (or hide) the name of the respondent, from a list?
Are you using LimeSurvey 2.06?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.
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
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 61
- Thank you received: 4
8 years 5 months ago #126079
by Usapuka
Replied by Usapuka on topic How can I remove (or hide) the name of the respondent, from a list?
Hi jelo,
Thank you! Now is working. I had to do one change: the relevance equation should be written without { }.
Best regards,
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13907
- Thank you received: 2546
8 years 5 months ago #126086
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How can I remove (or hide) the name of the respondent, from a list?
You're totally right !Usapuka wrote: .... the relevance equation should be written without { }.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.