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
Sandhya K 10Sandhya K 10 

How do i retrieve a value in <textarea> in VisualForce Page when using standardController ?

I am using StandardController="Emploee__c" , able to retrieve the input text , while unable to retrieve the value in textarea.What would be the problem ? And how do i retrieve it. My requirement is I want to use the textarea tag only.

The field i have in salesforce is long textarea

Note : I am able to save the value I entered in the text Area , but value not retrieved on my VF Page as it did for input text , when I give the Id in the URL. 
Name : <input type="text" value="{!Emploee__c.Name}" id="nm"/>
<textarea id="resizable" rows="5" cols="20" value="{!Emploee__c.Long_Description__c}" ></textarea>

<button onclick="save();" >Submit Form </button>

User-added image
How to retrieve value in text area when I give Id in the url.
Jasper WallJasper Wall

Hi Sandhya,
Check the field level security for your profile for the field Long_Description__c and make it as accessible for your vf page. Visualforce limits the field visibility based on this even if you're System Administrator and they're often left blank.

Let us know if it helps,