I would like to disable a field after first save.
The case is:
I have an application form which has application type(Picklist).
The moment I save the Application I want to disable the Application Type so users can not change it.
I put a function on the form load to disable the Application Type if Xrm.Page.ui.getFormType() != 1
This works correctly if I save and close the application record and reopen it again and Application Type field will be disabled.
The problem that I have is for the first Save. If user saves the record and do not close the form, the application Type field will not be disabled :(. I debugged the code it and after record is saved the onload event of the form will be kicked again but the form type is still 1 (which is create).
Any help how can I achieve this will be really appreciated!
Please note that my Legacy rendering in the system setting is set to yes as well.
*This post is locked for comments