I need to run ClientScript on “Location” edit form...
# suitescript
g
I need to run ClientScript on “Location” edit form. I can’t deploy it directly as Location is not in the Deployment dropdown. Workaround? I attached an UserEvent (which can be added to Location) and did:
Copy code
if (context.type == context.UserEventType.EDIT) {
    context.form.clientScriptModulePath = './tmp_cs_location_required_fields.js';
}
but for some reason, the saveRecord is not triggered. Any ideas how to get it working?