Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / How to make EDIT butt...
Finance forum
Answered

How to make EDIT button visible false in D365Fo Form

Posted on by 560

Hi All,

I created customized form in that I tried to hide the new, delete  and edit  (System button ) .

Using below code I can able to achieve NEW,DELETE button

public void init()
    {
        this.form().design().showNewButton(0);
        this.form().design().showDeleteButton(0);
        super();

    } 

Note: But I able to hide the EDIT button in my form I tried different way to resolved but I can't able to do it,

I tried below code but no luck, please help to hide the EDIT button

public void init()
    {
       
#SysSystemDefinedButtons

       
super();

        attachButton=
this.control(this.controlId(#SystemDefinedAttachButton)) as FormCommandButtonControl;
        attachButton.visible(
false);
    }
 

7625186.PNG

  • Verified answer
    WillWU Profile Picture
    WillWU 22,344 on at
    RE: How to make EDIT button visible false in D365Fo Form

    Hi Tony,

    Thank your for your sharing!

  • Verified answer
    TonyAx Profile Picture
    TonyAx 560 on at
    RE: How to make EDIT button visible false in D365Fo Form

    Hi Team,

    I resolve the issues using below steps,

    56055.PNG

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans