You need to sign in to do that
Don't have an account?
PawelWozniak
How to render Label, field and button in one line?
Here is a requrement from client:
In one line I need: field name, filed itself, and button.
This must be fitted inside one column of: <apex:pageBlockSection columns="2" >
So I came up with this:
<apex:pageBlockSectionItem > <apex:inputField label="Activation Counter" id="activationCounter" value="{!object.field__c}"/> <apex:commandButton value="Reset"/> </apex:pageBlockSectionItem>
which results in missing label:
So I wanted to add field label like this:
<apex:pageBlockSectionItem > <apex:outputLabel value="Activation Counter" for="activationCounter"/> <apex:inputField label="Activation Counter" id="activationCounter" value="{!object.field__c}"/> <apex:commandButton value="Reset"/> </apex:pageBlockSectionItem>
an now getting error:
Error: <apex:pageBlockSectionItem> may have no more than 2 child components
Is there a way to get it working together?
Try the following
This way, pageblocksectionitem has two children and you have your three components.
Regards
All Answers
Try the following
This way, pageblocksectionitem has two children and you have your three components.
Regards
Nice workaround. Thank you.