Hi, Thanks for your reply. I have not done much of coding yet and tried the following:
1) Created and saved the following .js file on the file cabinet
function userEventBeforeLoad{
var locationField = nlapiGetField('expmediaitem');
var memoField = nlapiGetField('memo');
locationField.setMandatory(true);
memoField.setMandatory(true);
}
2) Attached it at the form level custom code tab (navigated from customize form option), but it is not working