You need to sign in to do that
Don't have an account?

Rich text area
Hi,
I have create a rich text area custom field. In this field allow to image also. Then how to check the rich text area is null or not when image is displayed. Any one know reply it.
I have create a rich text area custom field. In this field allow to image also. Then how to check the rich text area is null or not when image is displayed. Any one know reply it.
Where do you want to check the value of this rich text area.
In validation rules or triggers or custom VF page controllers.
Please specify.
Thanks,
Abhishek.
To check if rich text area field is null or blank, you have calculate it's length and check if length == 0.
For ex. If you have fieldName as "RichTextArea__c" then you have to check it's length as
RichTextArea__c.trim().length == 0.
Hope this helps you.
Thank you,
Prashant