use a value from a script

0

Hello,

Is it possible to reuse a value after a script.

I have a quizz score, with a script I apply condition on the result. If the result < 0 then result =0.

the result change only in the script.

On the report the result is still <0 .

How can I do to make the result=0 in the report?

 

 

Nicolas90 answered
    0

    Hello Dominic,

     

    Thanks for your reply.

    Your solution seems to be good but how can I push the script value into a hidden value ?

    When I add a hidden value, I can’t see the script value.

     

    my script:

    result_q1=getvalue(38)
    print(‘Quizz result -> ‘..result_q1)
    if result_q1 <0 then
      result_q1=0
      end
    print(‘Final Quizz result -> ‘..result_q1)

     

    I would like to see (in this exemple) result_q1 in my report or export.

     

    Thanks

    Dominic Sharpe commented
      0

      I’m not sure if there is enough information in your post but perhaps you can push the script value into a Hidden Value action to store it in a hidden field?

      https://help.surveygizmo.com/help/hidden-values

      Maybe you can share some additional information or a sample of your script?

      Dominic Sharpe answered
        ×

        Login

        Question stats

        • Active
        • Views493 times
        • Answers2 answers
        • Followers1 follower