Issues with 'CG x-xx ADD' Command

Yes - there is a change in the way the template functions are invoked.

In server 2.0.7 when you call the play process in the template it invokes javascript function play(usercontent: string). In later versions the server extracts the usercontent string from the CG command and calls the javascript update(usercontent :string) function, then (if autoplay is enabled for example) it calls the javascript play() function after the update function has run.

Uncaught reference error message suggests you may not have defined the javascript update function.

When I create a HTML template and want any server to be able to play it, I program for a possible invoke of play(usercontent: string), checking if the input parameter exists. If so, I invoke the update(usercontent :string). You sometimes need a global flag to track if play function has been called so that you can use the update() to set the user fields, then start the intro animate when play is called.

1 Like