How to show an Error Message on the Workspace within g_modal dialog box?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2023 02:45 AM
Hello,
I have a requirement of showing an error message within the workspace of g_modal dialog box (based on a condition) as shown in the snapshot below
Can anyone help me get this achieved please? Thanks
Regards,
Himesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2024 08:48 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2024 09:15 PM
create and customize a modal dialog, and you can add an error message to the content of that modal.
You can use g_modal to create a dialog and show it in the workspace.
To show an error message inside the modal.
you can set the content display a specific error message
var modal = new GlideModal('error_modal');
modal.setTitle('Error');
modal.setBody('{div style="color: red;"}Please try again later.{/div}', false);//Curly braces replace with trangle braket
modal.addCloseButton('Close');
modal.render();