- Posts: 57
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Random Brand selection for Multi Choice
- scene143
- Topic Author
- Offline
- Senior Member
Less
More
2 years 5 months ago #220364
by scene143
Random Brand selection for Multi Choice was created by scene143
Hi Team,
I am trying to get Randomize brands from previous Multi answer question .Everythig is coming correct but randomize brand is not getting punched in rawdata .
Can you please some one help . FYR attached the survey.
Q2=Multi choice
eqmybrand (suppose it shouls punch the randomize brands) but its not punching.
Regards
Sara
I am trying to get Randomize brands from previous Multi answer question .Everythig is coming correct but randomize brand is not getting punched in rawdata .
Can you please some one help . FYR attached the survey.
Q2=Multi choice
eqmybrand (suppose it shouls punch the randomize brands) but its not punching.
Regards
Sara
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
2 years 5 months ago #220377
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Random Brand selection for Multi Choice
Hi,
1. eqnBrands is not correct.
You do not include the brand of S2d in eqmystring, but you count ALL answers in S2d; and the comments in S2d are added too.
Please have a look how the "that.S2a" is expanded in your survey..
Better you calculate the length of eqmystring.
2. Because eqnBrands is not correct , eqRandom may give a random number like 5 (meaning: greater than the brands in eqmyString.)
So my advise:
eqnBrands: {strlen(eqmyString)/2}
And: It might not work correct when you show everything in one group. You know the random number changes with each click in the group.
Here my idea:
Joffm
1. eqnBrands is not correct.
You do not include the brand of S2d in eqmystring, but you count ALL answers in S2d; and the comments in S2d are added too.
Please have a look how the "that.S2a" is expanded in your survey..
Better you calculate the length of eqmystring.
2. Because eqnBrands is not correct , eqRandom may give a random number like 5 (meaning: greater than the brands in eqmyString.)
So my advise:
eqnBrands: {strlen(eqmyString)/2}
And: It might not work correct when you show everything in one group. You know the random number changes with each click in the group.
Here my idea:
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- scene143
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 57
- Thank you received: 1
2 years 5 months ago #220381
by scene143
Replied by scene143 on topic Random Brand selection for Multi Choice
Thank you very much for your help Joffm
The topic has been locked.
- scene143
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 57
- Thank you received: 1
2 years 5 months ago #220429
by scene143
Replied by scene143 on topic Random Brand selection for Multi Choice
Hi Joffm,
Random brands are working fine but the random brands are changing each question but I want to fix that random brand across the survey.
We have a few logic in the survey.
1. S2a is multi-option with comments (Used Multioption comments and hidden comment box for few options)
1. S2d is Single select with comments (Used Multioption comments)
Condition is Random brand should not select Brand 4 and exclude S2d brand.
(eg: if i select S2a 1,2,4,6 & s2d=2) so S2f 1st column is brand 04 which is fixed for all the questions 2nd column should have to code no 02 (which is S2d brand selected & 3rd column should have a random brand for (1 OR 6) but this brand should come in across all the questions
S2f, S4 & S5 i want to show S2d selected brand names (even if I select others) in column 2 & another column Random brand names.
Can you please help me on this.
I have attached the survey FYR.
Regards
Sara
Random brands are working fine but the random brands are changing each question but I want to fix that random brand across the survey.
We have a few logic in the survey.
1. S2a is multi-option with comments (Used Multioption comments and hidden comment box for few options)
1. S2d is Single select with comments (Used Multioption comments)
Condition is Random brand should not select Brand 4 and exclude S2d brand.
(eg: if i select S2a 1,2,4,6 & s2d=2) so S2f 1st column is brand 04 which is fixed for all the questions 2nd column should have to code no 02 (which is S2d brand selected & 3rd column should have a random brand for (1 OR 6) but this brand should come in across all the questions
S2f, S4 & S5 i want to show S2d selected brand names (even if I select others) in column 2 & another column Random brand names.
Can you please help me on this.
I have attached the survey FYR.
Regards
Sara
Attachments:
The topic has been locked.
- scene143
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 57
- Thank you received: 1
2 years 5 months ago #220430
by scene143
Replied by scene143 on topic Random Brand selection for Multi Choice
Pls use this attached file.
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
2 years 5 months ago - 2 years 5 months ago #220431
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Random Brand selection for Multi Choice
Of course, it will not work when you show everything on one page.
Please, in the future export only the relevant questions.
Copy the survey, remove all questions not related to the problem and export this as lss.
And: Do not use this outdated "condition builder". Nowadays we work with "relevance equations"
Here is what I get.
Joffm
Please, in the future export only the relevant questions.
Copy the survey, remove all questions not related to the problem and export this as lss.
And: Do not use this outdated "condition builder". Nowadays we work with "relevance equations"
Here is what I get.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:
Last edit: 2 years 5 months ago by Joffm.
The topic has been locked.
- scene143
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 57
- Thank you received: 1
2 years 5 months ago #220432
by scene143
Replied by scene143 on topic Random Brand selection for Multi Choice
Thank you very much ..Really Appriciated Sure next time will upload only the relevant questions.
The topic has been locked.
- scene143
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 57
- Thank you received: 1
2 years 5 months ago #220434
by scene143
Replied by scene143 on topic Random Brand selection for Multi Choice
Hi Joffm,
Sorry, have another Query.
Same survey S2f am showing 3 brands based on previous questions ..but If the respondent selects only one brand then can I able to hide 2 or 3 rd brand columns in QS2f??
An array that I used doesn't have the option to apply any filter in x-axis ....is there any way to hide based on previous question answers?
Regards
Sara
Regards
Sara
Sorry, have another Query.
Same survey S2f am showing 3 brands based on previous questions ..but If the respondent selects only one brand then can I able to hide 2 or 3 rd brand columns in QS2f??
An array that I used doesn't have the option to apply any filter in x-axis ....is there any way to hide based on previous question answers?
Regards
Sara
Regards
Sara
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
2 years 5 months ago #220435
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Random Brand selection for Multi Choice
There is a plugin "hideEmptyColumn"
[url] gitlab.com/SondagesPro/QuestionSettingsType/hideEmptyColumn [/url]
Of course you have to change the option "Ignore" to "". Otherwise the column is not empty.
Joffm
[url] gitlab.com/SondagesPro/QuestionSettingsType/hideEmptyColumn [/url]
Of course you have to change the option "Ignore" to "". Otherwise the column is not empty.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- scene143
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 57
- Thank you received: 1
2 years 5 months ago #220436
by scene143
Replied by scene143 on topic Random Brand selection for Multi Choice
Hi Joffm,
Thanks for the solution.
I am using web version Limesurvey 3.27. I downloaded that hideEmptyColumn.zip file but am not able to install that plugin. Also, i tried in my Configuration > plugins is not shown "hideemptycolumn" plugin to activate.
Can you please help me ?
Also can you please send that sample survey in which you have posted a screenshot?
Regards
Sara
Thanks for the solution.
I am using web version Limesurvey 3.27. I downloaded that hideEmptyColumn.zip file but am not able to install that plugin. Also, i tried in my Configuration > plugins is not shown "hideemptycolumn" plugin to activate.
Can you please help me ?
Also can you please send that sample survey in which you have posted a screenshot?
Regards
Sara
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
2 years 5 months ago #220438
by Joffm
Did you follow the instruction?
Then you get a folder called "hideEmptyColumn"
This folder you uploaded to the "plugin" directory of your LimeSurvey installation.
Does your plugin directory look like this? There may be other plugins.
And does the "hideEmptyColumn" folder contain this?
Then you should see the plugin after a restart in the Plugin manager, where you activate it.
Also you might clear the asset cache in the "Global Settings" of your configuration.
And of course there are other options, if you really are not able to install this.
Create your question four times with all possible outcomes.
1. all three columns are filled
2. The second column is not filled (S2d=PayTM)
3. The third column is not filled (S2d!=PayTM, only two brands selected)
4. Only PayTM selected.
Joffm
This is how the plugin works.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Random Brand selection for Multi Choice
What does this mean?but am not able to install that plugin
Did you follow the instruction?
You downloaded, you unzipped this file?Via ZIP dowload
- Download [url] extensions.sondages.pro/IMG/auto/hideEmptyColumn.zip [/url]
- Extract :
Code:unzip hideEmptyColumn.zip
- Move the directory to plugins/ directory inside LimeSUrvey
Then you get a folder called "hideEmptyColumn"
This folder you uploaded to the "plugin" directory of your LimeSurvey installation.
Does your plugin directory look like this? There may be other plugins.
And does the "hideEmptyColumn" folder contain this?
Then you should see the plugin after a restart in the Plugin manager, where you activate it.
Also you might clear the asset cache in the "Global Settings" of your configuration.
And of course there are other options, if you really are not able to install this.
Create your question four times with all possible outcomes.
1. all three columns are filled
2. The second column is not filled (S2d=PayTM)
3. The third column is not filled (S2d!=PayTM, only two brands selected)
4. Only PayTM selected.
Joffm
There is no other survey, except the changing of "Ignore" to "" that you have an empty entry in the column header.Also can you please send that sample survey in which you have posted a screenshot?
This is how the plugin works.
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- scene143
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 57
- Thank you received: 1
2 years 5 months ago #220439
by scene143
Replied by scene143 on topic Random Brand selection for Multi Choice
Thanks Joffm.
The topic has been locked.