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 :
Finance | Project Operations, Human Resources, ...
Answered

In the form, how to hide Edit button?

(2) ShareShare
ReportReport
Posted on by 552

Hi guys,

In a form, what actually handle the Edit button in Top Action panel to appear ? I have a custom form, which in all of its data source I have set AllowEdit to No, but still Edit button appear.

And how to make it disappeared.

Thanks,

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at

    Hi ken,

    I think you need to set Allow create to No on the datasource, then only Edit or save button will be disabled.

    Thanks,

    Girish S.

  • Ken Manhattan Profile Picture
    552 on at

    But if I put AllowCreate to No also, does it will impact on my code ? because inside the form, I have process to create new record of this tables.

    Thanks,

  • GirishS Profile Picture
    27,827 Moderator on at

    Then why you want to disable the edit button?

    If you want to create a record in the form you must have edit or save button. You cannot change that.

    Thanks,

    Girish S.

  • Ken Manhattan Profile Picture
    552 on at

    Hi Girish,

    Which means this is standard behavior and their framework ? I'm ok if cannot change that, it is just not correct in UX perspective.

    The intention is because after the record created, user no need to Edit anything. That's why I want to hide it instead.

    The creation is through button. The form only need to show the table records.

    Thanks,

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi Ken, Try changing ViewEdit mode to View in form extension class. I am not sure if it will hide the Edit button but your requirement to disable datasource editable might be fulfilled and new records can be created from button which I am assuming does not user to input values in your form.

  • GirishS Profile Picture
    27,827 Moderator on at

    This is the standard UI framework - Its handled by FormViewOption property - If you set it to View mode form will be opened with the Edit button - If you set it to Edit mode form will be opened with save button enabled - This is a standard UI process and you cannot change that - One option will be Setting the allow create to No on the DataSource level but you want to create the record. So better leave it as it is and instead explain them about the UI framework to the client.

    Thanks,

    Girish S.

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    Allowed it to no on a formds property won't help you. On the active method of that datasource get the form datasource and then ds.allowedit(false);

  • GirishS Profile Picture
    27,827 Moderator on at

    I understood - Suppose let us take a grid with new button - In that case Edit and save button is for all the records not for single record. If you click one time Edit button whole form become editable.

    If you want to again get it back to Edit mode, you can navigate to Options (Action pane) >> Edit >> Read mode.

    Thanks,

    Girish S.

  • Ken Manhattan Profile Picture
    552 on at

    Hi guys,

    An update, I just tried what Mohit suggested. It works. Put the form View Edit Mode to View makes it disappeared. Also the action pane > Options doesn't have the selection make the form to Edit.

    Thanks,

  • GirishS Profile Picture
    27,827 Moderator on at

    Edit doesn't disappear its changed to Save right?

    Refer to the below image for Read mode option under options tab.

    Thanks,

    Girish S.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans