<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>JavaScript in Email Notification HTML Body field</title><link>https://www.aras.com/community/f/development/36350/javascript-in-email-notification-html-body-field</link><description>Hello, 
 Is there a way to use javascript, in Email Notification Body HTML field? So that, multiple item details can be rendered and populated in the email. 
 Thanks in Advance</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: JavaScript in Email Notification HTML Body field</title><link>https://www.aras.com/community/thread/10565?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 09:16:36 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:30d926d0-56b9-4220-bf29-59cd5c1e8ee4</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Thanks AJ for fixing the button! But what if the button successfully tricked the spam bots? I hope you haven&amp;acute;t removed an important&amp;nbsp;forum feature.&lt;span class="emoticon" data-url="https://www.aras.com/community/cfs-file/__key/system/emoji/1f604.svg" title="Smile"&gt;&amp;#x1f604;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Some additional feedback, but it&amp;acute;s only a trivial issue: With the homepage update Aras now links the forum to&amp;nbsp;&amp;quot;Latest posts&amp;quot; page. This page is very useful and honors the fact that many people for an unknown reason are overwhelmed by the task of selecting the right category.&lt;/p&gt;
&lt;p&gt;But once you are inside the forum, you cannot get back to the &amp;quot;Latest posts&amp;quot; page.&amp;nbsp;The homepage&amp;nbsp;currently mix up these two links which lead to different start pages of the forum.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="/community"&gt;https://www.aras.com/community&lt;/a&gt;&amp;nbsp; vs.&amp;nbsp;&lt;a id="" href="/community/f"&gt;https://www.aras.com/community/f&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This might be confusing for people not familiar with the forum. But it&amp;acute;s really only a trivial issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;@&amp;nbsp;&lt;a href="/community/members/antoined"&gt;antoined&lt;/a&gt;&amp;nbsp;From my experience, anything even remotely close to &amp;quot;automation&amp;quot; in emails is unfortunately not possible. We cannot even use CSS classes.&lt;/p&gt;
&lt;p&gt;But for your example maybe a trick could work. Try using a fake property to pass the &amp;quot;red/blue&amp;quot; value. You can call the email template from a Method which allows you to pass extra context properties on demand.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JavaScript in Email Notification HTML Body field</title><link>https://www.aras.com/community/thread/10558?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 14:01:52 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:fe824344-0f7a-42c5-adf8-d3176d24d66e</guid><dc:creator>AJ Sebastian</dc:creator><description>&lt;p&gt;Hi Antoine,&lt;/p&gt;
&lt;p&gt;I see what you&amp;#39;re seeing when you try and ask a question using the widget at the top of the Forum list.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you scroll to the bottom of the list, you see a different form to create a new thread, which seems to work. I&amp;#39;ll reach out and try and get that fixed ASAP. Thank you for bringing it to our attention.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you wouldn&amp;#39;t mind, could you create a new thread for this question for some more visibility?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;AJ&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Update: The broken ask button has been removed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JavaScript in Email Notification HTML Body field</title><link>https://www.aras.com/community/thread/10557?ContentTypeID=1</link><pubDate>Mon, 16 Sep 2024 09:47:29 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:117f2562-2690-483b-8df1-23649b18e352</guid><dc:creator>antoined</dc:creator><description>&lt;p&gt;Hello, this website is bugged so I can&amp;#39;t ask&amp;nbsp; a new Question (I have a white page when I click Ask, tried with both Firefox and Chromium), so I will ask here because that&amp;#39;s kinda related.&lt;/p&gt;
&lt;p&gt;I guess what &lt;a href="/community/members/pavan_5f00_karthik"&gt;pavan_karthik&lt;/a&gt;&amp;nbsp; wanted to achieve is conditional rendering in the email template.&lt;/p&gt;
&lt;p&gt;Something like `&amp;lt;p&amp;gt;You can access it by clicking the ${Item[@type='Part']/name/text() === &amp;quot;Old&amp;quot; ? &amp;quot;blue&amp;quot; : &amp;quot;red&amp;quot;} button.&amp;lt;/p&amp;gt;` for example.&lt;/p&gt;
&lt;p&gt;I tried to add a ternary like this but it didn&amp;#39;t work, so my question is, what is the template engine used by Aras? Where can I read about it, and does it have a syntax to do conditional rendering?&lt;/p&gt;
&lt;p&gt;cc &lt;a href="/community/members/angela"&gt;AngelaIp&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JavaScript in Email Notification HTML Body field</title><link>https://www.aras.com/community/thread/6472?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 18:15:22 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:c589d1e1-a72d-43d5-a16c-9741ae349101</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Script in Email? Do you want to hack somebody? :) . Javascript in Email is not supported&amp;nbsp;in modern Email readers.&lt;/p&gt;
&lt;p&gt;But I assume that was not your question. I assume you want to render a custom email Body? Not at your client PC, but inside your Innovator at the moment the email is send?&lt;/p&gt;
&lt;p&gt;Look at this community project:&amp;nbsp;&lt;a href="https://github.com/ArasLabs/email-related-files"&gt;https://github.com/ArasLabs/email-related-files&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It shows how to send emails via Method with custom body. Note that the project is a little bit dated, the code doesn&amp;acute;t use the latest functions to send email. But you should be able to google them easily. As far as I remember, even the Innovator Method editor recommends you the correct replacement&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>