Close/Dismiss TI modal window

Hi Apliqo community:

Any suggestions on how we can dismiss/close the TI modal window using a custom JS function? We are experimenting with running a callback function which is triggered after the TI modal window is closed (namely using the parameter below):

"process": {
   "cancelCallback": "demoProcessCancelCallback"

However, in our custom JS function, we need a way to actually close the modal window at the end (as the default behavior of closing when clicking on “X” is no longer active when using “cancelCallBack”. This is the same behavior in the custom callback demo page in Apliqo_Demo. You need to use the keyboard Esc key to get back to the main screen.

Any tips on how we can dismiss the modal window in our JS code? Thanks!

Having a similar requirement too.

Alternatively, I am looking for an onClose event so that maybe it triggers a TI process upon closing the pop-up widget.

@twong FYI, we got resolution to this by adding return true to the end of the JS function. For more info: apliqoc3ux / apq-c3-ux / issues / #593 - TI modal - "cancelCallback" parameter prevents modal closing — Bitbucket

Hope this also works for you!

1 Like