Hi Mike,



I tried using your script and it set the variable to read only, even though it should have been mandatory, meaning the query didn't work.   I'm looking for it showing as approved on the RITM level, not the REQ level.   Is that the getReference you're using?   For me, it looks like it might be the REQ level.   I tried this and it didn't work either - any thoughts?



function onLoad() {


  var ritm = new GlideRecord("sc_req_item");


  var approval = ritm.approval;


  if(approval == 'Approved'){


  g_form.setMandatory('Server_Name', true);


  }



}