Apologies if this is the wrong spot, I didn't see ...
# suitecommerce
g
Apologies if this is the wrong spot, I didn't see a channel specific to SCA. This feels like I am overlooking something in the docs, but is there a reliable way to close a modal programmatically, specifically one opened in the code in the screenshot. More specifically when a certain action happens inside the modal (user clicks a button that triggers some db stuff to happen and the db stuff finishes.)
m
You can try with
this.option.layout.$containerModal.modal('hide');
g
Thank you! This got me pointed where I needed to be. I had to do
Copy code
this.options.Layout.application.layout.$containerModal.modal('hide');
in the code in the modal and that closes it.
m
try with
this.option.Layout.$containerModal.modal('hide');