+ Start a Discussion
dat le ducdat le duc 

Make outputLabel and inputField display inline when using required="true"

Line break when I add required="true" to inputField. I tried some methods but it doesn't work.
Pls help, Thanks
<apex:pageBlockSection>     
 <apex:pageBlockSectionItem >
	<apex:outputpanel >
		<apex:outputLabel value="Name:" for="FA"/>
		<apex:inputField id="FA" value="{!Account.Name}" required="true"/>  
	</apex:outputpanel>
 </apex:pageBlockSectionItem> 
</apex:pageBlockSection>
ShirishaShirisha (Salesforce Developers) 
Hi,

Greetings!

I would suggest you to try the approaches provided in the below thread to achieve your requirement.

https://developer.salesforce.com/forums/?id=906F0000000984FIAQ

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri