Announcements
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,
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.
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.
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.
Ken Manhattan Do you need any further assistance on this issue?
Edit doesn't disappear its changed to Save right?
Refer to the below image for Read mode option under options tab.
Thanks,
Girish S.
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,
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.
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);
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.
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.
André Arnaud de Cal...
293,304
Super User 2025 Season 1
Martin Dráb
232,149
Most Valuable Professional
nmaenpaa
101,156
Moderator