Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

In the form, how to hide Edit button?

(0) ShareShare
ReportReport
Posted on by 522

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,

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: In the form, how to hide Edit button?

    Also, if you want to achieve this on all the forms you can set it globally under user option form - Navigate to gear icon on the top right corner >> Select User options >> Under Preferences tab >> StartUp tab page >>Set the "Default View/Edit mode".

    Thanks,

    Girish S.

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: In the form, how to hide Edit button?

    This is because you have set the form view edit mode option to view. So, the form will always be in the editable mode. Thats the reason you are not getting options to revert back to the edit mode.

    Thanks,

    Girish S.

  • Ken Manhattan Profile Picture
    522 on at
    RE: In the form, how to hide Edit button?

    Hi Girish,

    No, for my custom form, the Options -> Edit no longer showing. And so does the Edit/Save button is no longer visible.

    Hi, Mohit,

    It is solved. I will close the case. Thanks for your help.

  • Mohit Rampal Profile Picture
    12,556 Moderator on at
    RE: In the form, how to hide Edit button?

    Ken Manhattan Do you need any further assistance on this issue?

  • GirishS Profile Picture
    27,825 Moderator on at
    RE: In the form, how to hide Edit button?

    Edit doesn't disappear its changed to Save right?

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

    Thanks,

    Girish S.

  • Ken Manhattan Profile Picture
    522 on at
    RE: In the form, how to hide Edit button?

    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,825 Moderator on at
    RE: In the form, how to hide Edit button?

    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.

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,624 Moderator on at
    RE: In the form, how to hide Edit button?

    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,825 Moderator on at
    RE: In the form, how to hide Edit button?

    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
    Mohit Rampal Profile Picture
    12,556 Moderator on at
    RE: In the form, how to hide Edit button?

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,304 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans