function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
John NeffJohn Neff 

Can I control the size of the input box when using inlineedit?

Hello, 

I have inlineedit enabled on a pageBlock, is there a way that I can control the size of the inputtext box that appears when a value is dblclicked?
 
<apex:inlineEditSupport event="ondblclick" showOnEdit="saveButton, cancelButton" />

I have a Text Area field displayed in this pageBlock, however when a user double-clicks the value the input text box shrinks down to a standard 255 character text field.  Is there a way that I can override that behaivor?

User-added image


 
Vivek DVivek D
If it is input field then use 
// Id of the field you can get from field details from object it will be something like 00N...
#idOftheInputField
{
   width : 500px;
}

 
John NeffJohn Neff
Thanks Vivek - however I am using an output field: 
 
<apex:outputField value="{!vi.Contract_SENT__c}" >
                                     <apex:inlineEditSupport event="ondblclick" showOnEdit="saveButton, cancelButton" />
                                </apex:outputField>

Does that leave me any options?