Open Closed

Show Confirm Alert when using Modal #3877


User avatar
0
thaithiendi created

Dear support team, I'm using Modal to create an object. I use AbpModalButtons.Save in cshtml and OnPostAsync in cs file. Now: when I save data, Modal auto hide. And have no confirm alert. I want to show yes no confirm Popup and when save successful i don't want to hide modal and keeping data on Modal. Please show me how to do that.

  • ABP Framework version: v5.3.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

2 Answer(s)
  • User Avatar
    0
    malik.masis created

    Hi,

    You can use abp.message.confirm for that as demonstrated in the documentation and you can have a look at it here.

    Also, there is detailed documentation regarding Modal. You can write your code in the .js file by catching save button and then you can do what you want. I hope this inspires you.

    Regards.

  • User Avatar
    0
    thaithiendi created

    Thanks malik.masis

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11