Runnning modal after submit in workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2025 10:49 AM - edited 03-04-2025 10:52 AM
Hi,
I want to create a modal which will show after a record is submitted and when we click on the ok button in the modal it should redirect me to a certain page. This entire thing should happen in custom workspace. I was trying the below code in a client script onsubmit which was working only on the form view but not on workspace and that also was disappearing before clicking on the ok button. Also I was not able to understand how to add the URL to the ok button. All my tables are custom .The URL should be something like this -
instance name + /x/iem/tqa-workspace/record/x_iem_tqa_work_request/cf0f63f31b6f96103df95314604bcbb9/params/selected-tab-index/5/sub/record/x_iem_tqa_work_request_task/-1_uid_12/params/query/work_request%3Dcf0f63f31b6f96103df95314604bcbb9/extra-params/query%2Fwork_request%3D'+id+'%2FparentTable%2Fx_iem_tqa_work_request%2FparentRecordSysId%2Fcf0f63f31b6f96103df95314604bcbb9
Here the id value should come from a field on the form.
The code I tried so far-
var gm = new GlideModal("glide_warn", true, 600);
gm.setTitle("Upload status");
gm.setPreference("title", "Your record is uploaded");
gm.setPreference("onPromptComplete", function() {alert("Ok")});
gm.render();
}
Any guidance or related posts on this will be helpful
Regards,
Maharshi Chatterjee