I have a model driven app and in the form i when one of the field is not null and the form is saved, i lock all the fields in the form. But but if i hit the refresh button on the top, or if I go out to the view and go back into this record, all the fields are unlocked.
How can i load a JS function to load when i refresh the page like described above?