+ Start a Discussion
RGK.ax912RGK.ax912 

Get error message to display properly

I have an apexinput field that displays a drop down selection box.

 

The problem is that if there an error validating the value entered the error message is not ver well presented on the page, all the message is printed below the field in a very narrow column.

 

Ideally I would like to display the error to the right of the input box.

 

The code for the input box is:-

 

 

 

             <apex:panelGrid columns="3" border="0" width="180" cellspacing="0" cellpadding="0" style="line-height:30px;text-align:right;font-weight:bold;font-size:8pt;padding-right:10px" rendered="{!(Case1.Web_Case_Reason__c!=null)}">
                    <apex:panelGrid columns="1" width="180" cellpadding="0" style="line-height:30px;text-align:right;font-weight:bold;font-size:8pt;padding-right:10px">
                        <apex:outputLabel value="{!$ObjectType.Case.fields.Type_Service__c.label}" for="cModel"/>
                     </apex:panelGrid>
                     <apex:outputPanel >
                        <apex:inputField value="{!Case1.Type_Service__c}" id="cModel" >
                             <apex:actionSupport event="onchange" rerender="theForm" status="status"/>
                        </apex:inputField>
                    </apex:outputPanel>
             </apex:panelGrid>

 Can anyone help me with this

 

Thanks in advance