Skip to main content
added 2 characters in body
Source Link
C0DEPirate
  • 1.6k
  • 1
  • 22
  • 43

Below is the simplest version of VF page where I want to increase the width of Case Owner input field:

<apex:page standardController="Case">
    <apex:form >
        <apex:inputField value="{!Case.Subject}" style="width:350px"/> 
        <apex:inputField value="{!Case.OwnerId}" style="width:350px"/> 
    </apex:form>
</apex:page>

</apex:page>

I have tried adding the style , styleclass, wrapping the input field in a .<div>. The other text fields are working fine problem is with only case owner field.

But the width is showing as per standard salesforce css.

Please advise if anyone knows how to achieve this.

Below is the simplest version of VF page where I want to increase the width of Case Owner input field:

<apex:page standardController="Case">
    <apex:form >
        <apex:inputField value="{!Case.Subject}" style="width:350px"/> 
        <apex:inputField value="{!Case.OwnerId}" style="width:350px"/> 
    </apex:form>
</apex:page>

</apex:page>

I have tried adding the style , styleclass, wrapping the input field in a . The other text fields are working fine problem is with only case owner field.

But the width is showing as per standard salesforce css.

Please advise if anyone knows how to achieve this.

Below is the simplest version of VF page where I want to increase the width of Case Owner input field:

<apex:page standardController="Case">
    <apex:form >
        <apex:inputField value="{!Case.Subject}" style="width:350px"/> 
        <apex:inputField value="{!Case.OwnerId}" style="width:350px"/> 
    </apex:form>
</apex:page>

</apex:page>

I have tried adding the style , styleclass, wrapping the input field in a <div>. The other text fields are working fine problem is with only case owner field.

But the width is showing as per standard salesforce css.

Please advise if anyone knows how to achieve this.

Source Link
C0DEPirate
  • 1.6k
  • 1
  • 22
  • 43

How to increase width of apex:inputfield for case owner field

Below is the simplest version of VF page where I want to increase the width of Case Owner input field:

<apex:page standardController="Case">
    <apex:form >
        <apex:inputField value="{!Case.Subject}" style="width:350px"/> 
        <apex:inputField value="{!Case.OwnerId}" style="width:350px"/> 
    </apex:form>
</apex:page>

</apex:page>

I have tried adding the style , styleclass, wrapping the input field in a . The other text fields are working fine problem is with only case owner field.

But the width is showing as per standard salesforce css.

Please advise if anyone knows how to achieve this.