- Posts: 48
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
affecter un champs a un texte selon la reponse
- bayemanel
- Topic Author
- Offline
- Senior Member
Less
More
4 years 1 week ago #196809
by bayemanel
affecter un champs a un texte selon la reponse was created by bayemanel
hello everybody
Please i need a help
I want each time I click on 'YES' on the first question (see photo limesurcap1)
that i have 'the modality(Deces ou invalide d'un membre du menage adulte actif) ranks on the second question see limesurcap2 so that I can classify them
My code
$("#answer698679X31X329SQ001-A1").click(function(){
$('input[name="698679X31X3311"]').attr(' ', 'Deces ou invalidite dun membre du ménage adulte et actif');
})
Best regards
Please i need a help
I want each time I click on 'YES' on the first question (see photo limesurcap1)
that i have 'the modality(Deces ou invalide d'un membre du menage adulte actif) ranks on the second question see limesurcap2 so that I can classify them
My code
$("#answer698679X31X329SQ001-A1").click(function(){
$('input[name="698679X31X3311"]').attr(' ', 'Deces ou invalidite dun membre du ménage adulte et actif');
})
Best regards
Attachments:
The topic has been locked.
- bayemanel
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 48
- Thank you received: 1
4 years 1 week ago #196810
by bayemanel
Replied by bayemanel on topic affecter un champs a un texte selon la reponse
i use Version 2.05+ Build 140821
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12923
- Thank you received: 3977
4 years 1 week ago - 4 years 1 week ago #196815
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic affecter un champs a un texte selon la reponse
You may use an array filter.
But to be able to do this, insert a question of type "multiple" (hidden), where you set the relevant items (the ones which got a "Yes" in the array) by an equation (also hidden).
{M1_1=if(A1_1==1,"Y","")}
{M1_2=if(A1_2==1,"Y","")}
...
with "A1" code of the array question,
"M1" code of the hidden multiple question.
Now you may use "M1" as array filter in your ranking question.
Example in Version 2.06+ Build 160129
Joffm
But to be able to do this, insert a question of type "multiple" (hidden), where you set the relevant items (the ones which got a "Yes" in the array) by an equation (also hidden).
{M1_1=if(A1_1==1,"Y","")}
{M1_2=if(A1_2==1,"Y","")}
...
with "A1" code of the array question,
"M1" code of the hidden multiple question.
Now you may use "M1" as array filter in your ranking question.
Example in Version 2.06+ Build 160129
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 4 years 1 week ago by Joffm.
The topic has been locked.
- bayemanel
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 48
- Thank you received: 1
4 years 1 week ago #196825
by bayemanel
Replied by bayemanel on topic affecter un champs a un texte selon la reponse
Thank a lot
this solution work perfectly if the format (presentation question) is question by question
so i have to do group by group (presentation question)
please help me again
Best regards
this solution work perfectly if the format (presentation question) is question by question
so i have to do group by group (presentation question)
please help me again
Best regards
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12923
- Thank you received: 3977
4 years 1 week ago #196826
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic affecter un champs a un texte selon la reponse
Put it into two groups.
To show these both questions on one screen is really silly.
As soon as respondents see what happens, answers will be biased.
Joffm
To show these both questions on one screen is really silly.
As soon as respondents see what happens, answers will be biased.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- bayemanel
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 48
- Thank you received: 1
4 years 1 week ago #196828
by bayemanel
Replied by bayemanel on topic affecter un champs a un texte selon la reponse
that's true but my questionnaire has more than 30 questions with several themes categorized in groups and the two questions are in the same group.
So I cannot afford to do my questionnaire question by question because the respondents will answer by group of questions
when I said the format of the presentation I am referring to (Questionnaire property => general parameters => presentation and navigation => format => group by group) if I make this adjustment your solution will not work while I am under the obligation to present the question as what I described above I hope I made myself clear
Best regard
So I cannot afford to do my questionnaire question by question because the respondents will answer by group of questions
when I said the format of the presentation I am referring to (Questionnaire property => general parameters => presentation and navigation => format => group by group) if I make this adjustment your solution will not work while I am under the obligation to present the question as what I described above I hope I made myself clear
Best regard
The topic has been locked.