in an entity ive set a Max Students Number field, i need to make it editable only when creating the form, and make it read-only right after saving the form
how to do that?
when i set the field as read-only i cant edit it at all when creating a new form, i need to be able to set a value to it on create - then change it to read-only
i saw setsubmitmode but did not understand how to use it
here's what im stuck at so far in writing the function thats supposed to do it: (if possible without code id wish to know as well)