+ Start a Discussion
maheshkovvadamaheshkovvada 

Visualforce Registration page

The below code is showing error:Error: Unknown property 'Hardware__registration__cStandardController.xName'

how to solve it

<apex:page standardController="registration__c" showHeader="false" sidebar="false">
<apex:form >
<apex:pageBlock title="Crete user">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Submit"/>
<apex:commandButton action="{!cancel}" value="Home"/>
<apex:pageBlockSection columns="2">
<apex:pageBlockSectionItem>UserName<apex:inputText value="{!xName}"/></apex:pageBlockSectionItem>
<apex:pageBlockSectionItem>Password<apex:inputSecret value="{!xPassword}"/></apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>

AmitSahuAmitSahu

what are xName and xPassword  ?

Suresh RaghuramSuresh Raghuram

Instead of xName and Xpassword give the field name

sivaextsivaext

you need to give field names in value attribute.

 

give field names in place of xname and xpassword.

BewitchedBewitched

Hi,

 

Do you think, using a standard controller would be able to meet the requirement.. ? Wouldn't you need Extentions at least to do the work?

 

Apart from this as suggested by others you need to give proper field names... eg:- {!account.name}

 

and if it is a custome field than it should be something like :-  {!account.Account_Manager__c}

 

Thanks,

 

Tejpal KumawatTejpal Kumawat

Add two fields  " xName and xPassword " in the object registration__c.