I haven LWC modal popup initiated by a Quick Action. For this some Aura code is needed, but I have that working.

Upon closing (via a button on the modal popup), the underlying record page should be updated (refreshed). But it's not. The modal popup closes, but the page is not updated. This is my Javascript:

  modalClose : function(component, event) {

What am I missing here?

  • Do you have any component on the page? If yes, please check if the refresh event is handled – Samir Mar 3 '20 at 16:27
  • Doesn't changing the order of the events work? I would imagine if you refresh the view before closing the modal, that should work. – Jayant Das Mar 3 '20 at 20:04
  • Changing of the order of the events does not work. – Sander de Jong Mar 4 '20 at 7:14

You can try standard Js way

  • This indeed refreshes the page, but it is a bit drastic. I am looking for something more subtle. Like what you get when you are on an Account page and add a new Contact. After saving the new Contact, the Account page is refreshed, but much more inobtrustive. Do you know how to do that? – Sander de Jong Mar 4 '20 at 7:21
  • From my experience, it works smoothly not everywhere. can you check if you are seeing any error in console? – Samir Mar 4 '20 at 7:39
  • No, there are no errors in the console. – Sander de Jong Mar 4 '20 at 7:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.