Is it possible to update the display type on a fie...
# suitescript
n
Is it possible to update the display type on a field using the api in client script? (for instance on field change of another field) (pretty sure it's not)
not done the same way as using the form from N/ui/serverWidget, but its possible
n
hmm, struggling with this. I have code in a validate field function in a client script looks like this:
Copy code
var tranRec = context.currentRecord;
var theField = tranRec.getField({fieldId:'custbody_cat_sent_to_warehouse'});
theField.isDisabled = false;
I can interrogate the field putting it to the console but the isDisabled does not change and, weirdly, it shows as false before and after I try and set it but the field (a checkbox) is most definitely not editable.
such a simple request driving me nuts
message has been deleted
b
dont know what to tell you, i can disable and undisable a field normally
to my knowledge, those fields only fail to work when the field starts out hidden