Discussion5Replies7627Views×Close popoverPremkumar Ganesan (PremkumarG) cognizant cognizant NL View ProfileSend Message PremkumarG Member since 2013 20 posts cognizant Posted: March 30, 2016Last activity: September 26, 2016Posted: 30 Mar 2016 4:36 EDTLast activity: 26 Sep 2016 10:02 EDT Closed Close modal windowHi,Currenly in a button action set i called show harness to display the section in Modal window(with mami, mini, close) icons- Normal window.I customised the section by adding a submit button. On click of submit button i need to call a activity and close the window. I used Run script 'window.close()' it throws exception saying page or property reference is invalid.Please advice on this.I am using pega 7.1.8 Thanks,Prem User Experience ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion. Posted: 4 years agoPosted: 21 Jun 2016 10:44 EDT×Close popoverStavros Dimitriou (dimis) PEGA Senior Instructor Pegasystems Inc. DE View ProfileSend Messagedimis PEGA replied to PremkumarGHi I notified the relevant team to look into this and reply to you. Regards dimis Posted: 4 years agoPosted: 22 Jun 2016 1:32 EDT×Close popoverSATHYA MANOHARAN G (SathyaG_Incessant) INCESSANT TECHNOLOGIES INCESSANT TECHNOLOGIES IN View ProfileSend MessageSathyaG_Incessant INCESSANT TECHNOLOGIES replied to PremkumarGTry this On Click -- Run Script: Function Name: script:pega.u.d.submit Parameters: Name: Blank Value: "pyActivity=SaveAndContinue&CloseAfterSave=true&apyActivity=GoToPreviousTask" Posted: 4 years agoPosted: 26 Sep 2016 7:13 EDT×Close popoverNisarg Kothari (NisargK7) Morgan Stanley Morgan Stanley IN View ProfileSend MessageNisargK7 Morgan Stanley replied to SathyaG_IncessantHi, This worked for me. Thanks, Nisarg Kothari Posted: 4 years agoPosted: 26 Sep 2016 10:02 EDT×Close popoverSathishkumar Senthilkumar (sents) PegaOne GmbH Lead System Architect PegaOne GmbH DE View ProfileSend Messagesents PegaOne GmbH replied to SathyaG_IncessantThis is same as configuring the button with following action, Process work -> Save with close after save option checked Posted: 4 years agoPosted: 22 Jun 2016 1:59 EDT×Close popoverKasun Manawadu (Kasun.M7) Datacom Private Ltd. IT Consultant Datacom Private Ltd. NZ View ProfileSend MessageKasun.M7 Datacom Private Ltd. replied to PremkumarGTo archive this only if it is a single screen with a submit button , if not needed to open a flow in modal window , we have used t run a local action on the modal window and used the default submit buttons and it works perfectly.