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
mritzmritz 

How to edit Accounts details using visual force page?

I want to create a visual force page using which a guest user can look for his details and can edit/delete it.
Pritam ShekhawatPritam Shekhawat
Hello Mritzi,
                 Please follow this link and create a vfpage and actions which you want to perform.
https://developer.salesforce.com/page/An_Introduction_to_Visualforce

For sample account vfpage follow this
<apex:page standardController="Account">
    <apex:form >
        <apex:pageBlock id="in" title="Edit Account for {!$User.FirstName}">
            <apex:pageMessages />
            <apex:pageBlockButtons >
                <apex:commandButton value="Save" action="{!quickSave}" rerender="out, in" status="status"/>     
            </apex:pageBlockButtons>
            <apex:pageBlockSection >
                <apex:inputField value="{!account.name}"/>
                <apex:inputField value="{!account.industry}"/>
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
    <apex:pageBlock id="out" title="Read View">               
        <apex:actionStatus startText="updating..." id="status"/>
        <apex:pageBlockSection>
            <apex:outputField value="{!account.name}"/>
            <apex:outputField value="{!account.industry}"/>
        </apex:pageBlockSection>
    </apex:pageBlock>
</apex:page>
Thanks,
Pritam Shekhawat
 
Pratiksha Jadhav 30Pratiksha Jadhav 30
Thanks it was helpful!!!