Using [%QuestionName()%]

I'm trying to use the QuestionName function in my javascript code, e.g.:

alert([% QuestionName() %]);

but it seems to cause an error. Does anyone know how I'm using this incorrectly? Thank you!

Resolved
5 replies