You need to sign in to do that
Don't have an account?
NickHocking
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>
You can't display Name as inputField for User Object.
You can display FirstName,LastName..like those fields
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
Perfect thanks!!!
Do you know if there's a way to have it start autofilling with possible names as you type?
Cheers.
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
Hi,
can u use this code,
<apex:inpufField value="{!User.UserName}"/>