Hello everyone, I have a question about java script in my project. I have a field events event called drink_event, event handling type editing. The field itself is currently configured via dropdown multiple. When triggered, my layout appears with fields for the number of products and other components. All information is generated from a buffer that I fill and here is my main question - how can I call field events when opening the edit or add page, I need it to trigger by itself, now it works with this code - let changeEvent = new Event('change', {
bubbles: true,
cancelable: true
});
drink.getDispElem()[0].dispatchEvent(changeEvent);
But if I select the field type list page (multiple), the event is not called, no matter how I try.
Thanks in advance for your answer. I also have a second question, just because of it, I have to resort to list page. But I will ask it after your answer.