Forum Post: RE: Using Rollbase API in script component?

  • Thread starter Thread starter Godfrey Sorita
  • Start date Start date
Status
Not open for further replies.
G

Godfrey Sorita

Guest
It is not working mainly because the parsed value of the token {!product_name} is treated as a variable in your JavaScript code. If you had a product name TEST , the code will be evaluated as: script var text = TEST; document.write(text); /script The code basically returns an error because TEST variable is not defined. Enclosing the token with a single or double quotation mark should fix the problem.

Continue reading...
 
Status
Not open for further replies.
Back
Top