Showing posts with label Form Type. Show all posts
Showing posts with label Form Type. Show all posts

Friday, July 20, 2012

Find the Form Type in CRM 2011.


Introduction

             Here I am going to show you how to determine whether open Form is New Form or its just an existing Record.


alert(Xrm.Page.ui.getFormType())

If its output is 1 then its a New Form and if its output is 2 then it just Existing Record Form with fill up its data means its update Form.Others Form Types are:


1= "create";
2="update"
3="readonly"
4="disabled";
6="bulkedit";