Hi,
I am trying to add some dynamic text to the report I am sending to all participants in one of our surveys. I want the mail to contain some graphics and text.
When I put the "report" on the screen prior to sending the information everything looks exactly as it should but when the report arrives in the email that information has disapeared... hasn't been rendered.
That is regardless of if I am trying to use sendPDFReport or just sending the confirmation mail. My prefered choice is sendPDFReport but I take whatever solution I can get
I found this little code when I searched
Code:
<!-- The static text -->
<p>This is some static question text...</p>
<!-- A container for the dynamic text -->
<div id="elementToBeLoaded"></div>
<!-- A script to insert the dynamic text -->
<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:complete',function() {
$('#elementToBeLoaded').load('https://example.com #remoteContentToLoad');
});
</script>
and that works well for showing on screen but disapears when I try to make sendPDFReport or normal confirmation mail.
Thank you!