AX – D365FO – Hide New and Delete buttons in a Form

Want to hide New and Delete buttons of a form?

There are 2 ways

The first is to override the init method of the form like this

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

the other way is to set the “Show Delete button” and “Show New button” properties to NO, like shown in image below

One thought on “AX – D365FO – Hide New and Delete buttons in a Form

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s