Here is the code that I'm using right now: ``` ...
# suitescript
t
Here is the code that I'm using right now:
Copy code
var location = rec.getSublistField({
            sublistId: 'line',
            fieldId: 'location',
            line: 0
        });
        location.isMandatory = false;