LUA DOESNT WORK FOR MULTI-ANSWER QUESTIONS

2

Having spent hours trying to make Lua work for simple checkboxes I’ve now been told it doesn’t work.

Here is the article explaining that it does work…

https://luascript.surveygizmo.com/help#gettitle

Here is their “working example”

https://www.surveygizmo.com/s3/4558430/getvalue-for-multi-select-and-matrix-questions

It doesn’t work, even in their own “working examples”.

In frustration, I wrote to Support, and in amongst the usual disingenuous cut and pasted emotion about “Thanks so much for reaching out to us” was the admission…

“Unfortunately at this time GetValue does not work with multi value questions like checkboxes”

No apology. No “we’ll take it down off the website and let newcomers use legacy scripting” Just “hey, it doesn’t work, and we’re still telling everyone it does.”

SurveyGizmo clearly run their business on a different moral compass to mine.

 

Justin Worsley answered
    • I was testing LUA with a simple print(currentpagetitle()) or print(“text”) and always got an error Script Failed: Bad Script Syntax!. I wrote to Support and the answer was: “Thanks for reaching out to Support! I just took a look at your survey and I’m not seeing any errors. I’d also like to note that Custom Scripting is beyond the scope of Customer Support, so I am not technically able to support issues that you have with your scripts.”

    • Hi Elvira:

      Can you double check your script type selection? It sounds like you might have Legacy Custom Scripting selected. The error you shared is thrown via our Legacy Scripting language. If you select Legacy Custom Scripting in the Script Type dropdown menu (see screengrab below) but use Lua code this error will be thrown.

      https://www.screencast.com/t/JoXc7y13f5cw

      I did confirm that the following works for me when Lua is selected in the Script Type menu:

      print(currentpagetitle())

      I hope this helps!

      Bri Hillmer
      Documentation Coordinator
      SurveyGizmo Customer Experience Team

    • Is this still not working? I’m running into the same issue with “getvalue()”.

      It works in your survey example, but not when I try the exact same code. (https://www.surveygizmo.com/s3/4571201/Randomly-display-grid-rows-based-on-the-answers-to-checkbox-question)

    1

    SurveyGizmo have written to me….

     

    “Thanks so much for your excellent feedback on Community.

    I just want to clarify that only Lua is broken. Legacy scripting still works.”

     

    Oh well then. The new system is broken; the old system works, but it being withdrawn; oh, and we still haven’t told people publicly. 

    Justin Worsley answered
      ×

      Login

      Question stats

      • Active
      • Views3591 times
      • Answers6 answers
      • Followers2 followers