Close Modal on every Button

Hi Community,

I have several buttons in a modal. Is there a handy way to close the modal. No matter wich button is pressed? I get it only done with on of the several buttons.

Thx a lot and stay healthy

Cheers

Hi,
I can’t think of a handy handy besides this:

  • set all button’s linkId to ">> closeModal"
  • add a script widget with linkId set to "<< closeModal" and script set to
JS{{
set('replace_with_modal_id', 0)
}}

Hi Jean,
thank you for the info, but when i press a button yet no data is sending.
Is there a workaround for that.
Thx a lot

Sry i have found the mistake. I forgot to write the pre args for the buttons.

Hi @StephanS,

Would you please if you can post a screenshot to your preargs zone ?
It could help people (as me in example) to learn about your experience.
Cheers

Hi nlb,

here is a picture of the modal and my interface yet.

Thanks !
OUCH ! It’s a big interface… it seems to be very interesting. What is it for ?
Would you plan to publish the sources ? We for sure learn lot about it.
Cheers

HI,

Its for controlling cubase and some other functions.
Yes when its ready i would post it in the community.
But it needs some work yet.

1 Like