web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Hide Html Web Resource

(0) ShareShare
ReportReport
Posted on by 155

Hi,

I have one section on entity form,inside that section one custom field and one html web Resource.i want to hide only html web Resource in that section.i am using this Xrm.Page.ui.controls.get("WebResource_Shipping_Address").setVisible(false);

but  this is hiding entire section.please give me one solution for hiding only web resource .

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Michel Gueli Profile Picture
    982 on at

    See: community.dynamics.com/.../207271

  • Neethu Sara Thomas Profile Picture
    155 on at

    Hi Michel,

    This only i tried.but i don't want to hide that section.Need to hide only web Resource.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Neethu ,

    I would suggest first you add a tab like general tab. Inside the tab you can add multiple section , so one section for web resource only and another section for the custom field.

    You can write

    Xrm.Page.getControl("WebResource_Shipping_Address").setVisible(false);

    or  from another section.

    window.parent.Xrm.Page.getControl("WebResource_Shipping_Address").setVisible(false);

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Neethu ,

    Try with this -

    For same section

      Xrm.Page.getControl("WebResource_Shipping_Address").setVisible(false);

    From Parent section

      window.parent.Xrm.Page.getControl("WebResource_Shipping_Address").setVisible(false);

  • Verified answer
    Arpit Shrivastava Profile Picture
    7,518 User Group Leader on at

    Hi Neethu,

    Try below code, It's working fine for me and hiding only web resource:

    function hideWR()
    {
    var control = Xrm.Page.ui.controls.get("WebResource_WEB");

    if(control !=null || control !='')
    {
    control.setVisible(false);
    }
    }

    If you find the answer as useful, please mark it as verified

    Cheers
    Arpit
    https://arpitmscrmhunt.blogspot.in

  • Temmy Wahyu Raharjo Profile Picture
    2,916 on at

    Can you give us the printscreen of your ui and what do you want to achieve? Using those code I think you will only hide the WebResource control (not all section).

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans