Quick post, hopefully useful for reference …..,
getFormType()
The getForType method is used to get the form context.
The following table lists the form types that correspond to the return value.
Xrm.Page.ui.getFormType();
Form Type | Value |
Undefined | 0 |
Create | 1 |
Update | 2 |
Read Only | 3 |
Disabled | 4 |
Quick Create | 5 |
Bulk Edit | 6 |
Read Optimized | 11 |