My Question is this: Is there something in Confluence blocking the output of the console.log method?
There's no errors in either the velocity markup or JS. Try it for yourself. Create a macro, set a variable to something and have the console.log method run that variable. Even simple tests like this come back empty but if I use the command line in Chrome Dev, I see that in fact that foo = "foo";
var foo = "foo"; console.log(foo);
It works fine for me. Did you wrap your JS in a <script> tag? Here's what my full macro looks like:
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs