Hi, how to tell form type (quick create or entity form) through javascript?
*This post is locked for comments
Try to use Xrm.Utility.getGlobalContext().getQueryStringParameters().pageType method.
If we try to create the record through Quick Create the output is : quickcreate
If we are using Main forms then output is : entityrecord
Try to validate this using console
There is no real way using an SDK function to tell the difference between the forms using regular SDK functions.
You are probably able to get that functionality by checking values of particular fields.
For example the quick create form will not have a particular field. You can check if that field returns a value, and based on that know on which form you are.
Hi, Aric,
I understand that. I have both entity form and quick create form, so when I open either form, it always returns 1 , but I can not tell whether it is quick create or entity form
Hi,
Use Xrm.Page.ui.getFormType() to get the Form Type.
The result of 1 will be FORM TYPE CREATE.
If you have Quick Create enabled on the form, then when the Quick Create is open you will get the result of FORM TYPE CREATE. If you do not have Quick Create enabled, then the Entity form will result in one if this is a new form, and not an Update form.
Hope this helps.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Mansi Soni as our August 2025 Community…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Community Member 2
Christoph Pock 1