I am unable to hide fields of Quick View form on unified interface using javascript. I am using below code for hiding fields inside quick view form. This code works on Classic UI of CRM but doent work on Unified interface.
I am unable to hide fields of Quick View form on unified interface using javascript. I am using below code for hiding fields inside quick view form. This code works on Classic UI of CRM but doent work on Unified interface.
Hi Sanket1751991,
Article might help you https://www.magnetismsolutions.com/blog/jordanhohepa/2018/08/23/using-javascript-to-set-quick-view-form-visibility-in-dynamics-365
Let me know if You need anything else.
Thanks
Regards,
AW
Hi,
This should be working and is supported (docs.microsoft.com/.../formcontext-ui-quickforms)
I did a quick test in the browser console (so that's why I use Xrm.Page in the code below and not executionContext.getFormContext()) on the default account form of a vanilla environment, and the field gets hidden:
var quickViewControl = Xrm.Page.ui.quickForms.get("contactquickform");
quickViewControl.getControl("emailaddress1").setVisible(false);
With your Quick View Form and Field, this should be:
var quickViewControl = Xrm.Page.ui.quickForms.get("contactquickviewform");
quickViewControl.getControl("firstname").setVisible(false);
This might help you get to the bottom of it.
If you can't troubleshoot it, consider opening a support request: admin.powerplatform.microsoft.com/support
Henry
André Arnaud de Cal... 291,703 Super User 2024 Season 2
Martin Dráb 230,433 Most Valuable Professional
nmaenpaa 101,156