0

I tried everything I know to bring Job_Role__c and Job_Role__Other__c in single line . Please let me know if it is possible .singleline

<apex:pageBlockSectionItem >         
    <apex:outputLabel value="Job Role"/>
    <!--<apex:outputPanel id="jobRoleOther"  > -->
    <apex:panelGrid columns="2" id="jobRoleOther" >

        <apex:inputField value="{!Contact.Job_Role__c}" required="True" >  
            <apex:actionSupport event="onchange" reRender="jobRoleOther"/>  </apex:inputField>
        &nbsp;
        <apex:inputField id="jo" value="{!Contact.Job_Role_Other__c}" required="True"  rendered="{!IF((Contact.Job_Role__c='Other'),true,false)}"  /> 
    </apex:panelGrid>
    <!-- </apex:outputPanel> -->
</apex:pageBlockSectionItem> 

1 Answer 1

1

Add a StyleClass with display:"inline"; for the inputField.

2
  • Thanks Bretto,I am little confused now , I just added in the top <style> .requiredInput{ display: inline-block; } </style> and it started coming in single line . I didn't include the style class in inputfield Jan 5, 2018 at 12:16
  • Happy for you..
    – A.Bretto
    Jan 5, 2018 at 12:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.