Hello Experts, I have been trying to make expense...
# suitescript
r
Hello Experts, I have been trying to make expense line attachment field mandatory for all the expenses by default. This field is not available through workflow hence cannot take that route. I tried writing a js file and attached it to the Form Customize menu under custom script but it did not work. Can someone please helpĀ  me in this? Thanks
b
what does your code look like
there should be a Column.isMandatory in there somewhere
r
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
b
Lots of problems here
First is invalid function syntax