web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Disable field on change of tab in D365 CE

Community Member Profile Picture Community Member

Use case – Our requirement is to enable field description field on invoice line form on clicking of tab General.

Let’s see how we can achieve this

Solution –

Step 1 – Create web resource with below function-

 var invoiceLineCustomization =
 {
     unlockField : function(executionContext)
     {
         var formContext = executionContext.getFormContext(); 
            formContext.getControl("description").setDisabled(false);
     },
 } 

Step 2: Add this web resource on tab property event TabStateChange and try.

(path to go to event tab – Click on tab -> change properties -> event)

Output –

Hope this helps !

The post Disable field on change of tab in D365 CE appeared first on Cloudfronts - Microsoft Dynamics 365 | Power BI | Azure.

Comments

*This post is locked for comments