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
SFDC_DevloperSFDC_Devloper 

How do I show an edit button for a custom object in a visual force page and allow the user to edit the custom object?

Hi All,

       How do I show an edit button for a custom object in a visual force page and allow the user to edit the custom object?Please proviode me code?


Thanks
HitHit
Hi,

You can use standard controller of Custom object and use Command Button in VF page as follows:

<apex:commandButton action="{!save}" value="Save" id="theButton"/>