Javacript Snippet Widget arguments not working

0
I have a bit of a newbie question regarding the Javascript snippet widget.  I currently have javascript that looks like this: var ClientSess = Spot('pk_live_sometext'); and would like to have the value in quotes dynamically populate using an attribute from the entity this javascript snippet is enclosed in.  So I have tried the following: var ClientObj = Spot(${SomeAttributeName}); and variations of that without success.  If anyone has pointers about how to get this working (maybe a working javascript statement you could post here), that would be great.
asked
1 answers
0

Hi Mike,

In this question I have some screenshots on how to configure the javscript snippet widget, but looks like you set it up correctly. Maybe you are missing single quotes around your variable?

var ClientObj = Spot('${SomeAttributeName}');

 

 

answered