Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to hide Form Name in Microsoft CRM 365

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

   I want to hide Custom entity form name in Microsoft CRM 365. I have tried the following method to hide form name on form load js.

function SetFormHeaderNone()
{
document.getElementById('FormTitle').style.display = 'none';
}

But the above not working instead display error.

2450.Error_5F00_1.PNG

Please anyone help me.

Microsoft_5F00_CRM_5F00_365_2E00_.png

Thanks

Srini

*This post is locked for comments

  • ashlega Profile Picture
    ashlega 34,477 on at
    RE: How to hide Form Name in Microsoft CRM 365

    I'm pretty sure that for loop is an equivalent of

    window.parent.document.getElementById('FormTitle')

    (but yes, it likely has to be "timed")

  • MehrCrm Profile Picture
    MehrCrm 290 on at
    RE: How to hide Form Name in Microsoft CRM 365

    document.all is a proprietary Microsoft extension to the W3C standard. As far as I know, it still works on all browsers.

    If not, then you can use:

    var x = document.querySelectorAll("h1");


    Please see the following W3School page for explanation and examples:

    www.w3schools.com/.../met_document_queryselectorall.asp

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to hide Form Name in Microsoft CRM 365

    Thanks @MehrCrm. Its working fine. Will this work fine in all browser?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to hide Form Name in Microsoft CRM 365

    Hi, I am using same custom entity form in two different places, The Entity form content are same but entity is different like mentioned in below images,

    Image 1:

    Microsoft_5F00_CRM_5F00_365.-_2D00_-Copy.png

    Image 2: 

    Microsoft_5F00_CRM_5F00_365.-_2D00_-Copy.png

    For this reason only i wanted to hide entity form name. Hope you understand my requirement.

    Thanks

    Srini

  • Suggested answer
    MehrCrm Profile Picture
    MehrCrm 290 on at
    RE: How to hide Form Name in Microsoft CRM 365

    As mentioned, getElementById doesn't work. Instead (unsupported), we can use document.all collection. see the code snippet below. You will need to use a timer to ensure that the form elements are loaded prior to calling the snippet. You may need to increase the timer interval.

        setTimeout(function () {
            var allelem = window.parent.document.all;
            for (var i = 0; i < allelem.length; i++) {
                var id = allelem[i].id || allelem[i].getAttribute('id');
                if (id == 'FormTitle') {
                    // H1 element where title is displayed
                    //allelem[i].childNodes[0].innerText = "Hello there";
                    allelem[i].childNodes[0].style.display = 'none';
                    break;
                }
            }
        }, 1000);

    Hope this helps.

  • CRMexplorer Profile Picture
    CRMexplorer 760 on at
    RE: How to hide Form Name in Microsoft CRM 365

    Why do you want to hide it?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to hide Form Name in Microsoft CRM 365

    Hi thanks for your reply. If getElementById(DOM) object not supported then how do hide this form name? is there any other method to hide?

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: How to hide Form Name in Microsoft CRM 365

    Hello,

    There is no way of doing this (at least no supported way), also getElementById not supported anymore .

    Thanks

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans