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

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>


what are xName and xPassword  ?

Suresh RaghuramSuresh Raghuram

Instead of xName and Xpassword give the field name


you need to give field names in value attribute.


give field names in place of xname and xpassword.




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:- {!}


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




Tejpal KumawatTejpal Kumawat

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