Trigger function in Sidebar from a Modal

I'm working with 3 files

code.gs
Sidebar.html
Dialog.html

Code.gs open a sidebar (Sidebar.html)
in Sidebar there's a function test() and a button to open Modal (Dialog.html)
in Dialog.html, there's a button that i want to trigger test().

I'm not been able to trigger test() from Dialog.html. I alread tried solusion from chatgpt, gemini, deepseek...it looks complex from a simple task. 

Can anyone help me ?

0 1 202
1 REPLY 1
Top Labels in this Space