Skip to main content
May 3, 2022
Question

Display a message when button is clicked

  • May 3, 2022
  • 14 replies
  • 1 view

Hi,

I want to display a message informing an user to check their mail when a button is clicked. The button is for exporting the grid to excel. 

How do I do that? 

Thanks

    14 replies

    richardm900458
    May 3, 2022

    Hello sandhya,

    how do you define "message"?

    my first instinct. Use a read only paragraphfield on a form. and offer a download link with it?

    mikes0011
    Brainy
    May 3, 2022

    Kinda depending on exactly where this button is and what other things you're expecting it to do, one feature you might be able to make use of is the "Confirmation Message" configuration which gives the user a pop-up (where you can make the message whatever you want), along with ok / cancel buttons (where you can change their labels but not what they do), and they have to press the "ok" button for the base button to take effect.

    The Expression Guru
    May 3, 2022

    Hi Mike and Richard, 

    The button is for exporting a grid to excel and when an user clicks it, an email is sent with the excel spreadsheet as attachment. 

    So I want to inform the users to check their mail. 

    I don't want to keep it as a confirmation message. 

    Thanks

    mikes0011
    Brainy
    May 3, 2022

    From the user's perspective, what will happen after clicking the "export to excel" button, other than the export being emailed to them?  Does the process end?  Or do you want them to remain on / return to the same form?

    The Expression Guru
    mathieud0001
    Brainy
    May 3, 2022

    The alert banner pattern can be useful for this.

    docs.appian.com/.../alert-banners.html

    May 3, 2022

    Ok, but how can I use it with button click? 

    richardm900458
    May 3, 2022

    you change with button click a local! parameter and use this local parameter as showwhen condition:
    Alert banner are basically nothing else than an a!cardlayout()