+ 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.