- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2023 03:21 AM
Hi Team,
I have a requirement , when incident/request created to related Case then only make visible resolution information section on case record. If incident not created then I need to make invisible entire resolution information section and if request created then I need to make resolution information section visible but under this section I need to hide "Resolution Code" field. Can anyone help me on this requirement . Thanks in advance.
Case have either Incident or Request only
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 12:27 AM
Dear @Pandu3
Please use the below :
1. Client Script On Load on the case request
var gaRequest = new GlideAjax('checkParentExists');
gaRequest.addParam('sysparm_name', 'getParent');
gaRequest.addParam('sysparm_parent', g_form.getUniqueValue());
gaRequest.getXMLAnswer(checkParent);
function checkParent(answer) {
alert(answer);
if(answer == 'true'){
g_form.setSectionDisplay('resolution_information',true);
g_form.setVisible('resolution_code',false);
}else{
g_form.setSectionDisplay('resolution_information',false);
}
}
Script Include - client callable
- Kailas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2023 12:27 AM
Dear @Pandu3
Please use the below :
1. Client Script On Load on the case request
var gaRequest = new GlideAjax('checkParentExists');
gaRequest.addParam('sysparm_name', 'getParent');
gaRequest.addParam('sysparm_parent', g_form.getUniqueValue());
gaRequest.getXMLAnswer(checkParent);
function checkParent(answer) {
alert(answer);
if(answer == 'true'){
g_form.setSectionDisplay('resolution_information',true);
g_form.setVisible('resolution_code',false);
}else{
g_form.setSectionDisplay('resolution_information',false);
}
}
Script Include - client callable
- Kailas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 11:05 PM
Dear@KB18 ,
Thank you so much.