<@UD5AG5SGM> I don't see a way to make a field man...
# suitebuilder
j
@NickSuite I don't see a way to make a field mandatory / non mandatory using client script?
n
Get the field, and mark the field as Mandatory.
are you using SS 2.0?
j
Yes. There's no setMandatory on Field
isMandatory just returns true/false, it doesn't set anything
t
Copy code
var objField = thisRecord.getField({
                        fieldId: 'custbody_fieldid'
                    });
                    objField.isMandatory = true;
j
This doesn't work in Client script though.