Javascript event not working in new version of gc enterprise 3.0.14

hello @johnny
I’ve just updated Grocery to version 3.0.14,
and I’ve found that all JavaScript events are not working.

this is my script
window.addEventListener(‘gcrud.datagrid.ready’, () => {
console.log(‘datagrid ready triggered’);

this is my console showing

I also tried to add and edit, but it didn’t trigger anything in the console log.

Thank you.

Hello @nasrul ,

You need to make sure that the configuration “publish_events” is equal to true which the default is false.

Can you please try to change that and let me know if you are still having issues?


hello @johnny
You are right, Johnny.
Everything is now running normally.
Thank you very much for your quick response.
Perhaps the documentation can be added.


No problem @nasrul :hugs: ,

Didn’t realise that it is not in the documentation page. I will add it asap.