Get the highest rated value in Drag and drop ranking

0

Hi all,

 

I have a Drag and drop ranking question and on next question want to ask that why you rated this value as Highest. 

 

I got a similar post from thread in which they used a custom script and I implemented in exact way but it doesn’t work.  

 

Below is the Custom Script that I used.

 

hidepage(15,true)
hidepage(21,true)
hidepage(22,true)
hidepage(23,true)
hidepage(24,true)
hidepage(25,true)

rankings = getvalue(14)

for key,value in pairs (rankings) do
  if (value == ‘1’) then
    if (key == 10036) then
      pageid = ’15’
    end
    if (key == 10037) then
      pageid = ’21’
    end
    if (key == 10038) then
      pageid = ’22’
    end
    if (key == 10039) then
      pageid = ’23’
    end
    if (key == 10040) then
      pageid = ’24’
    end
    if (key == 10041) then
      pageid = ’25’
    end
  end
end

hidepage(pageid,false)

Here the QID 14 is the Drag and drop ranking question from which we are getting the values.

Also I created separate questions on page numbers 15,21,22,23,24,25 with each possible highest option.

What this Script basically do is:

  1. It hides every page with possible highest option questions.
  2. ranking variable stores the value of Drag and drop ranking question.
  3. Then it checks if the option is the highest (value==’1′) or not, if it matches then the pageid is set.
  4. And at end that page will be unhidden.

 

Thanks.

FCComedy answered
    0

    I’m not sure if this is the same place where you grabbed the original script but you might try the script documented here:

    https://help.surveygizmo.com/help/drag-and-drop-show-when

    This uses the Legacy Scripting language but should do the trick. Also, if you run into any trouble I suggest reaching out to SurveyGizmo Support as they may have some pointers:

    https://help.surveygizmo.com/help/surveygizmo-support-hours

    Hope this helps!

    Dominic Sharpe answered
      0

      Hi Dominic,

      Thanks for your response.

      You are right I grabbed the script from that document only. But still I am unable to see the resultant page which satisfies the condition in script.

      FCComedy answered
        ×

        Login

        Question stats

        • Active
        • Views1404 times
        • Answers2 answers
        • Followers1 follower