hello @johnny
in gc enterprice version 3.0.8 event javascript add form and edit form is not working, but in datagrid.ready is working, whereas i have set publish event is true
it turns out event name is not same with documentation
window.addEventListener(‘gcrud.form.edit_form’, ({detail}) => {
console.log(‘edit_form triggered’, detail);
});
window.addEventListener(‘gcrud.form.clone_form’, ({detail}) => {
console.log(‘clone_form triggered’, detail);
});
window.addEventListener(‘gcrud.form.read_form’, ({detail}) => {
console.log(‘read_form triggered’, detail);
});
event for edit is gcrud.form.edit and for add is gcrud.form.edit