JavaScript – getFormTypes

getFormTypes – Gets the form type for the record.

Form TypeValue
Undefined0
Create1
Update2
Read Only3
Disabled4
Quick Create5
Bulk Edit6
Read Optimized11

Usage:

function onLoad(executionContext)
{debugger;

    var formContext= executionContext.getFormContext();
    var formType= formContext.ui.getFormType();
    if( formType == 1) //Create
    {
        //Do something
    }
	
}

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Scroll to Top