Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How to capture the value of the OK button on a pop up dialog #8412


User avatar
0
JLombela created

Hi

I would like to capture the value of OK button on a pop-up notification message. How can I do that so I can redirect the user to a different page? See the screenshot below and the javascript responsible for it.

JavaScript

Regards John


2 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    Only abp.message.confirm accepts callback function directly. Documentation: https://aspnetboilerplate.com/Pages/Documents/Javascript-API/Message

    For other methods in the Message API, you can use the undocumented .then(callback):

    abp.message.success(
        app.localize('Transfer1'),
        app.localize('TransferSuccessful')
    ).then(function (isConfirmed) {
        location.href = "/App/Transactions";
    });
    
  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because of no recent activity. Please create a new issue if you are still having this problem.