UPDATE: I was able to figure this out. I ended up ...
# suitescript
t
UPDATE: I was able to figure this out. I ended up switching to a User Event beforeLoad script. If anyone is curious, below is the code that I used.
Copy code
function beforeLoad(context) {
        var form = context.form;

        var sublist = form.getSublist('line');
        var location = sublist.getField('location');
        location.isMandatory = false;
    }