Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 12:23 AM
Hello Sir,
Just to revise the script to be more performance-optimized and when there is more than 1 such check box. Then the script would be:
var grRITM = new GlideRecord("sc_req_item");
grRITM.addQuery('sys_id',current.sys_id);//to get the current RITM
grRITM.addQuery("cat_item", "cbd3f97b97e4111097af9300f153af71");//catlog item sysid
grRITM.query();
if (grRITM.next()){
var sapVal = grRITM.variables.u_sap_real_estate;//give your variable name
if (sapVal == "true"){ //Pass 'true' here
answer = true;
}
}