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
sandeep sankhlasandeep sankhla 

Rich Text Area field null check

Hi All,

Rich Text Area field null check

I have one custom field type of (Rich Text Area) , I have binded this on my VF page with input field..Now on click of one button , I want to validate if it is null or not..
How to check if it is null or not..I want page side validation..

NagaNaga (Salesforce Developers) 
Hi Sandeep,

To check whether a Rich Text Area field is empty, use the LEN function, like:

LEN ( My_Rich_Text_Field ) = 0

Please let me know if this helps

Best Regards
Naga kiran
sandeep sankhlasandeep sankhla
Hi Naga,

I need the value in java script is input field so onclick of sav button in javascript only I want to see if it is null or not..

LEN we can use in firmula field..but I am not saving anything to database..before that I need to check..