Skip to main content

Multi msgbox displayed

Hi all,
I am writing my first IDEA script. I have searched many topics but could not find the solutions. My problem is msgbox displayed many times when users click on the button several times. In the pictures attached, when users click on Check Ready button 2 times, 2 msgbox will be displayed. Hope to hear from you soon!

tryvltkcb Thu, 01/24/2019 - 21:34

In reply to by Brian Element

Thanks for your response, Brian. I have watched it and applied for a part of my script as well. However, I would prefer not to create many new dialogs :( Is there any way to apply for Msgbox function not to display many times when a button clicked without creating new dialog for it? 

Brian Element Fri, 01/25/2019 - 07:29

In reply to by tryvltkcb

In the video it showed you how to create a flag (boolean variable) that will track when a dialog is open and if it is already open not open it again.  Is this what you are looking for?