Hi guys, please give me a help with this question.
Between WebBlocks this behavior doesn't look pretty good.
My scenario, using an wizard steps, as which step is a different WebBlock and for the Modal is another one, the first step call WebBlock with Modal, but when I click on buttons, he never closes, only with mouse click out of Modal.
Both has actions("Yes","No"), just with Notify Action.
On Click of my Buttons ("Yes","No")
Method = AjaxSubmitValidation = Client & Server
Marcel Mendes Falcão wrote:
I am also having similar issues with a Cancel button in a popup that contains a WebBlock (Cancel and Ok button are both in the webblock)
Method property is Submit Ajax, Is Default property set to False ==> On Click: Never called
Method property is Submit, Is Default property set to False ==> On Click: Called but is not closing as described by Brandon. My form has a RunJavaScript action in it to force a resize of the popup.
When the Submit action is pointed to an action that Notifies and the Notification handler calls the Popup_Editor_Close action, the popup remains open. Note the Notification handler action also is handling the notification generated from the Notification button and the same Popup_Editor_Close action does close the popup. The Ok button does call Popup_Editor_Notify while the Cancel does not.
I am surprised that the modal doesn't have a function to close itself. Problem is that I am not really a JQuery/JS guy and although Samuel Jesus's answer is a bit weird and tricky, since it works, then I'll go for it. Thanks!
Hi Juan Carlos,
The Silk UI Modal pattern does have standard ways of closing, and all three of them have already been described on this thread and are quite straightforward: (a) your user can either click anywhere outside the modal window or; you can provide them with a button that (b) uses the Submit method or, (c) uses the Ajax Submit method and the provided toggleModal action (if the Modal is closed it will open it, if the Modal is open it will close it - exemplified and described here).