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
Tin013Tin013 

Long Text Area (32000)

 Hi all,

 

I have above text filed on my Visualforce page as below:

 

<apex:panelgroup >

<apex:panelgrid columns="3" border="0">

<apex:outputText value="Note" id="cNote"/> :<apex:inputField value="{!OppSearch.Note__c}" required="false"/>

</apex:panelgrid>

</apex:panelgroup>

---

 

By default, the box is only 4-5 line high. I am just wondering if there is a way to increase the size of the box somehow please?

 

Many thanks 

Best Answer chosen by Admin (Salesforce Developers) 
Anand SinghAnand Singh

You have two options to achieve it

1) Edit the field and specify greater value in "# Visible Lines"

 

2) Instead of using "<apex: inputputField" use "<apex: InputTextArea rows="10" cols="100" /> "

where rows determine the height and cols determine the width in characters.

All Answers

Anand SinghAnand Singh

You have two options to achieve it

1) Edit the field and specify greater value in "# Visible Lines"

 

2) Instead of using "<apex: inputputField" use "<apex: InputTextArea rows="10" cols="100" /> "

where rows determine the height and cols determine the width in characters.

This was selected as the best answer
Tin013Tin013

Wonderful!

 

Thank you very much. 

PrasadVRPrasadVR

Hi Anand,

 

      I am not clear with you'r first point, Could you please give me some hint on this.

Anand SinghAnand Singh

Click "Edit" on field name with data type "Long Text Area", you can modify the "No of Visible Lines" property as displayed below:

 

Anand SinghAnand Singh
Sorry...for some reason screenshot didn't came through.

Refer section "Long Text Area Options" containing field property "# Visible Lines". Hope this helps.