You need to sign in to do that
Don't have an account?
Aidan Keenan
apex iframe in a e mail template?
I am try to put a visualforce iframe into a e mail template, however the iframe will only work as a link in the e mail template and will not come through if I put it inside the HTML e mail body
<messaging:plainTextEmailBody>
<apex:iframe src="/apex/testEncrypted2?id=003A0000009bypw" scrolling="true" id="theIframe"/>
</messaging:plainTextEmailBody>
<messaging:htmlEmailBody >
<apex:iframe src="/apex/testEncrypted2?id=003A0000009bypw" scrolling="true" id="theIframe"/>
</messaging:htmlEmailBody>
The reason I am doing this is that I am trying to bring through an encrypted custom field which is is masked if i do not try and do it this way. Is there a way to bring the iframe through in the e mail template??
<messaging:plainTextEmailBody>
<apex:iframe src="/apex/testEncrypted2?id=003A0000009bypw" scrolling="true" id="theIframe"/>
</messaging:plainTextEmailBody>
<messaging:htmlEmailBody >
<apex:iframe src="/apex/testEncrypted2?id=003A0000009bypw" scrolling="true" id="theIframe"/>
</messaging:htmlEmailBody>
The reason I am doing this is that I am trying to bring through an encrypted custom field which is is masked if i do not try and do it this way. Is there a way to bring the iframe through in the e mail template??
There are a lot of security concerns when Salesforce is used in an iFrame. However, you can go through links below containing details on how you can use html templates in iframe:
1.https://developer.salesforce.com/forums/ForumsMain?id=906F0000000937cIAA
2.https://developer.salesforce.com/forums?id=906F000000095UoIAI
3.http://salesforce.stackexchange.com/questions/24975/visualforce-html-email-template-ability-to-edit-text-in-preview-before-sending
4.http://salesforce.stackexchange.com/questions/12128/iframe-in-visualforce-page-pass-parameters
I hope this helps.