function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MrBungleMrBungle 

Can an <apex:detail> be rendered in edit mode?

I would like to not have to manually add all fields to be edited but instead just use the simple  <apex:detail> tag on a VF page. I also need to have other apex components such as a custom cancel button display so I can't use the /e url switch to set the record in edit mode because it won't use my page. Is there a way that my page can still use the <apex:detail> tag but display it in edit mode or is this strictly a read-only mode component?

Thank you.
 
Hargobind_SinghHargobind_Singh
Apex:Detail is a the detail-view, which is read-only. You would need to create your own "detail-like" page using page-blocks and page-block-sections in your VF page.