0

I am not able to get account name as lookup to account as it is standard lookup field it appear as read only.

As <apex:inputfield value="{!quote.accountid}"> should get that .

enter image description here

>  <apex:page standardController="quote" >
>               
> 
> >   <apex:form >
> >                 <apex:pageBlock >
> >                 <apex:pageblockSection title="Quote Information" columns="2">
> >                 <apex:inputField value="{!quote.Name}"/>
> >                 <apex:inputField value="{!quote.ExpirationDate}"/>                
> >                 <apex:inputField value="{!quote.OpportunityId}"/>
> >                 <apex:inputField value="{!quote.IsSyncing}"/>
> >                 <apex:inputField value="{!quote.ACCOUNTId}"/>
> >                 <apex:inputField value="{!quote.Status}"/>
> >                 
> >                 <apex:inputField value="{!quote.Description}"/>
> >                
> >         
> >                 </apex:pageblockSection>   
> >                 </apex:pageBlock>         
> >                 </apex:form>
> >                 </apex:page>
3
  • Check that you have permission for that field or not
    – Ashwani
    Sep 17, 2015 at 14:19
  • I cannot change permission by default it is read only
    – Learner
    Sep 17, 2015 at 14:54
  • If it is readonly then why are you trying to edit that fields using vf page. Using input means that you want to edit that value. So, visualforce won't show input.
    – Ashwani
    Sep 18, 2015 at 8:54

1 Answer 1

0

You are using a Standard Controller which honors field level security.

You can use a custom controller which executes in system mode, where the field and object permissions are ignored, unless specified explicitly.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .