Close a mobiscroll.popup programmatically

Hi there -

I am using a mobiscroll.popup to display a form. When the form is submitted I would like to close the popup. How can I do this? My popup does have the “OK” button to close/dismiss. How can I programatically trigger that?


Hi @Michael_DeMutis :wave:

If you’re looking for closing a popup programatically, you can do that using the following code:

// Init popup

// Hide it later

Let me know if this helps :wink:

Is there a way to write this code without knowing the id for the popup? I’d like to be able to close any popup that may currently be open.