You need to sign in to do that
Don't have an account?
asadim
Multiline text field showing up as a small box
Hi,
I have a multiline text field which I want to display as a long box. The way I have it is like so:
<apex:pageBlockSection title="Title" columns="1"> <apex:inputField value="{!myField__c}"/> </apex:pageBlockSection>
This generates the box but it's shrunk as though it's inside a pageBlockSection with 2 columns. Any ideas on how to show this box properly? Thanks.
I think following code will help you.
<apex:pageBlockSection title="Title" columns="1">
<apex:inputField style="width:100%;height:75px;" value="{!myField__c}"/>
</apex:pageBlockSection>
If you need not to change the height of the inputField you can remove the "height:75px;" part.
All Answers
I think following code will help you.
<apex:pageBlockSection title="Title" columns="1">
<apex:inputField style="width:100%;height:75px;" value="{!myField__c}"/>
</apex:pageBlockSection>
If you need not to change the height of the inputField you can remove the "height:75px;" part.