render() on tabid

I am able to update a count field in a template using this on the template unique id - 


But when I try to update the count in a tab with the tab unique id it doesn’t work.  How do I pass the tabid to update the snippet?

Hi Chris!

Thanks for your question. I believe you just need to add that snippet to your tab “Whenever Shown” action so that the snippet will run every time you click on the tab.

To get to the tab actions, click on the tab itself in the composer, and go to the “Actions” property as shown below. Then add your JS snippet with your .render() function into the action framework.

Good luck!