Alpha Dialog or Popup

Hi all

I would like to get some assistance with Alpha dialog.
Am struggling to find a way to close a dialog when a button is clicked,
I know it has a close on the top right but would like to close it when a save button is clicked.

Please see the below image for better reference.

Thank you in advance.

1 Like

Hi @Simphiwe , You can close the dialog programmatically by using the following Alpha-supported method in your custom code:

ap.dialog.close();

Just add this to the onclick trigger of your Save button, and it will close the dialog when clicked.

3 Likes