post by nasrul on Oct 22, 2023

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.

post by johnny on Oct 22, 2023

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?

Regards
Johnny

post by nasrul on Oct 22, 2023

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.

regards
Nasrul

post by johnny on Oct 22, 2023

No problem @nasrul :hugs: ,

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

Regards
Johnny

1 / 4
Oct 2023