function toggleQuickViewLabel(executionContext) { var formContext = executionContext.getFormContext(); var lookupValue = formContext.getAttribute("YOUR_LOOKUP_FIELD_LOGICAL_NAME").getValue(); var quickViewControl = formContext.ui.quickForms.get("YOUR_QUICK_VIEW_CONTROL_NAME"); if (lookupValue != null) { // Show Quick View quickViewControl.setVisible(true); // Wait until it is loaded to hide the label quickViewControl.addOnLoad(function () { var labelElement = document.querySelector("label[for='QuickviewControlYOURCONTROLID']"); if (labelElement) { labelElement.style.display = "none"; } }); } else { // Hide Quick View quickViewControl.setVisible(false); } }
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 Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sahan Hasitha 271
Sohaib Cheema 97 User Group Leader
André Arnaud de Cal... 83 Super User 2025 Season 2