You need to sign in to do that
Don't have an account?
SanjayS
Apex Input field.
The following code:
Customer Name<apex:inputField value="{!Customer__c.Name}"
Displays the input field below 'Customer Name' and not side by side as expected.
Any clue, Why it is doing that?
The apex:inputField tag eventually generates a table in the html which is why the inputfield elements are showing up in a new line. Changing the markup to
should do the trick
All Answers
Here is the code:
apex:page standardController="Customer__c">
<apex:form > <!-- Begin Default Content REMOVE THIS -->
Hello {!$User.FirstName} <br />
<apex:pageBlock >Customer Name
<apex:inputField value="{!Customer__c.Name__c}"/><br />
</apex:pageBlock>
</apex:form>
</apex:page>
The apex:inputField tag eventually generates a table in the html which is why the inputfield elements are showing up in a new line. Changing the markup to
should do the trick
It works now. Thanks.
<apex:inputField label="Customer Name" value="{!Customer__c.Name__c}"/>
There is no label displayed. Please help