• J.J.E. van Os
  • NEWBIE
  • 0 Points
  • Member since 2012
  • Tam One B.V.

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
When i create a PDF button in the quotation interface, the source is a normally standard quotation template. But i want to generarate directly an pdf with an e-mail template in te quotation. Which is generated as an pdf attachment when i send the quotation. Is this possible?

Greetings board,

 

Is there a way by which we can update RTA field with image through code.

I'm aware about image can be inserted from local machine or by giving the web address but the problem is i want to update the RTA field through code.

 

I tried to debug the value stored in the RIA field after inserting the image in it.

system.debug([Select Image__c from account where id= '00190000007KFZr']);

(Account:{Image__c=<img src="http://www.w3schools.com/images/compatible_firefox.gif" alt="Firefox"></img>})

It can be seen that RTA field contains image as HTML but if we update same field with HTML value from debug, then that html is displayed as text instead of image.


One solution is to have a text field to store URL and display image using IMAGE() function in another formula field, But as the RIch text area field supports Image and HTML there must be a way by which we could achieve this.

 

Please share your thoughts on this and thanks for your time.