+ Start a Discussion

How do I insert an Image in my data fields in my App?

There is a datatype called "Text Area (Rich)" which says it accepts images. But I have no clue how to insert one.


Best Answer chosen by Admin (Salesforce Developers) 



If you make a certain field of type Rich Text, when you add an inputField to your Visualforce page, it will appear as a special input text box which enables you to add pictures/links/colored fonts/etc. You can use a simple DML insert/update/etc on the record containing that field and it should insert the image.


If this does not answer your question, can you please elaborate where you are having trouble? Thanks!