I need to create weights in-survey for rank-order in drag/drop ranking questions. Example, rate these car brands on safety: BMW, Volvo, Ford, Kia,BToyota The #1 ranked car gets a weight of 1, 2nd ranked a weight of .75, 3rd ranked a weight of .5, 4th a weight of .25, 5th a weight of 0. These weights will be stored in embedded variables like BMW_Safety_Weight, Volvo_Safety Weight, etc. How can I do this using javascript? Thanks!
Extra credit: We have an embedded variable called BrandCount (between 2 and 10 brands) The above example is a 5 point scale, for 5 brands. If 4 brands were to be ranked, the weights would be 1, .67, .33, 0. Ideally we'd like to apply the weighting scale that corresponds to the BrandCount, but I can figure that out later. As always, your help is greatly appreciated!
icon
Best answer by Anonymous 12 September 2018, 07:30
View original