Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion UI Actions/Mark Records Inactive - List Action/listAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ function markInactive() {

function ResponseFunction(response) {
var answer = response.responseXML.documentElement.getAttribute("answer");
alert(answer.toString());
//alert(answer.toString());
// Commented above code and replaced it with GlideModal
var gm = new GlideModal("glide_alert_standard", false, 600);
gm.setTitle("Info Message");
gm.setPreference("title", answer.toString());
gm.setPreference("warning", "false");
gm.render();
}
}
3 changes: 3 additions & 0 deletions UI Actions/Mark Records Inactive - List Action/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ mark the records as inactive by calling the reusable script include. Process is
3. Keep your script include ready with the function to make records inactive and done.

You can even modify the scrip include to change other fields too based on your requirements. And you do not need to pass any table name also. This is complete generic.

**UPDATE:**
_Replaced standard Javascript Window method 'alert' with GlideModal as per issue #745. This completes the task 'Mark Records Inactive UI Action'_