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
NickHockingNickHocking 

inputfield no displaying

Hi,

 

I'm trying to do an VF form using the folliwng code, however, the label of the inoput field is showing fine, but the field itself isn't, so there's nowehere to input text....

 

Any ideas?

 

<apex:page standardController="User">
<br/>
<apex:form >
<apex:pageBlock mode="edit">
<apex:pageBlockSection title="New Quote" columns="5">
<apex:inputField value="{!User.Name}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>

</apex:page>

VennilaVennila
Hi,

You can't display Name as inputField for User Object.
You can display FirstName,LastName..like those fields
Sonam_SFDCSonam_SFDC

Use:

<apex:page standardController="User">
<br/>
<apex:form >
<apex:pageBlock mode="edit">
<apex:pageBlockSection title="New Quote" columns="5">
<apex:inputField value="{!User.FirstName}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>

 

name as such is not a user field but a concat of the first name and last name

NickHockingNickHocking

Perfect thanks!!!

 

Do you know if there's a way to have it start autofilling with possible names as you type?

 

Cheers.

Sonam_SFDCSonam_SFDC

Hey Nick,

 

I did a quick search and  found some interesting solutions to the auto fil function:

 

Please go through the following to get an idea on how this can be imnplemented on your VF page:

http://blogforce9.blogspot.in/2012/11/auto-complete-visualforce-component.html

http://www.infallibletechie.com/2012/06/auto-complete-text-box-in-salesforce.html

KodiKodi

Hi,

 

can u use this code,

 

<apex:inpufField value="{!User.UserName}"/>