Disable field on change of tab in D365 CE
Views (154)
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.

Like
Report
*This post is locked for comments