Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

remove white spaces in Quick view form

Posted on by
Hi we added ProviderStatus as quick form view in main form, but it shows white spaces which need to remove 
 
I try different approaches but its not work, 
 

function formLoad(executionContext) {
            var quickViewControl = formContext.ui.quickForms.get("Provider_Status");
        quickViewControl.setVisible(true);   // this works 
         if (quickViewControl && quickViewControl.getControl(0)) {
        if (quickViewControl.isLoaded()) {
             var allElements = document.querySelectorAll('[data-id]');
                         let mainContainer = document.querySelector('[data-id="Provider_Status"]');
            let quickFormContainer = mainContainer.querySelector('[data-id="Provider_Status-QuickFormContainer"]');
        }
    }
}
 
We try to add
1. delay , recheck 
2. re execute function in every 500 milliseconds,
3. Use MutationObserver to watch for DOM changes
4. quickViewControl.addOnLoad(function() {   - this function not execute 
 
In DOM structure verify all quick view form element loaded, data-id name also verified 
 
still its not worked 
 
If anyone have solution for tihs, Please help 
 
 

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.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,572 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,706 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans