Posts

Showing posts from April, 2024

HOW TO GET MICROSOFT DYNAMICS 365 FORM TYPE IN JAVASCRIPT

Image
When working with forms, you have the ability to create different types of forms based on your needs : Main Form, Quick View Form, Quick Create Form, or Card Form. The most common type is the Main Form which is the form where most of time the users work. The main form itself has different status that represents specific functionality or use, this is known as well as form type . The purpose of this post is to know what are the different types of the Main form and how to get it using JavaScript , so you will have the ability to change its behavior based on its type that will be reflected for end users. Getting the type of form can be done in JavaScript using the function formContext.ui.getFormType() . The following JavaScript function will display a popup message with the form type: function getFormType(context) { var formContext =