You need to sign in to do that
Don't have an account?
Anushka Bansal
check null condition for Rich text field
I want to check whether a Rich text field named as "Contact_Image" is blank or contains an image in a record.
If the field contains an image i want to display it on a vf page (using soql query in a custom controller)
but if it is blank i want to display an image from the static resources.
is it possible??
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
Regards,
Nagendra.
All Answers
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
Regards,
Nagendra.
Please try to use below code and format it accordingly.
FYI https://developer.salesforce.com/forums/?id=906F000000097mvIAA
Thanks
Lokesh