Setting a field mandatory and still being able to ...
# random
r
Setting a field mandatory and still being able to not fill it out and save the record is classified as a Fact of Life... Brilliant.
crying sunglasses 1
(via client scripting in this case)
a
Code sample?
what is "Field" and how is created?
Are you doing:
Copy code
const oField = oRec.getField({
    fieldId: 'your_field_id'
});

And then:

oField.isMandatory = true;
???
Ohh sorry, ok, good luck!
c
Have you tried clearing the cache and re-trying? Client script should be respecting the form.
n
I agree. It doesn't work. I have to use saveRecord to validate the field(s). I always found it to br weird.