Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Removing a link from a form

Posted on by Microsoft Employee

Hello,

I'm trying to remove the style from an element on the form. I'm under the impression that Dynamics 365 doesn't support this, but it's a requirement right now and I'm looking for some ideas. I've uploaded a script to the web resources that fires on the onLoad, then I get the reference of the variable by parent.document.getElementbyID(), then I get the element by tag name. For some reason, when I do a .style.color or .style.textDecoration -- nothing happens. There is no error, but the behavior is undesired.  So my JS function isn't really applying the changes, but if i do a .style.display = "none" , it works (but it removes the data entirely, not just the link). 

I also thought to try to apply a .css file to maybe force on the id a style, but I don't really understand why this is such a hard thing to do, or why something's work while other things don't. Help! 

  • gdas Profile Picture
    gdas 50,085 on at
    RE: Removing a link from a form

    There might be some overlapping CSS  applied which has set important , for that its not reflecting. Could you please elaborate what is your requirement ?So that  people suggest some alternate supported options.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Removing a link from a form

    Also, the element is a span that contains a link. Thanks for any help or links to helpful resources.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans