getFormTypes – Gets the form type for the record.
| Form Type | Value |
| Undefined | 0 |
| Create | 1 |
| Update | 2 |
| Read Only | 3 |
| Disabled | 4 |
| Quick Create | 5 |
| Bulk Edit | 6 |
| Read Optimized | 11 |
Usage:
function onLoad(executionContext)
{debugger;
var formContext= executionContext.getFormContext();
var formType= formContext.ui.getFormType();
if( formType == 1) //Create
{
//Do something
}
}