<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Query JSLink / display calculated field image</title><link>https://www.infopathdev.com:443/forums/thread/116676.aspx</link><pubDate>Tue, 11 Jul 2017 14:59:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116676</guid><dc:creator>sbryf</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116676.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=116676</wfw:commentRss><description>&lt;p&gt;Hi there, hope all is well. I have a sharepoint list using the calculated field to display an image based on an another field&amp;#39;s value. Like &amp;quot;risk identified&amp;quot; in the status column would display a yellow icon in view (html in the field). I did this using JSLink as Microsoft does not support the number workaround anymore. The JS is quite simple really (renders the HTML):&lt;/p&gt;&lt;p&gt;(function () {&lt;br /&gt;&amp;nbsp;var overrideCtx = {};&lt;br /&gt;&amp;nbsp;overrideCtx.Templates = {};&lt;br /&gt;&amp;nbsp;overrideCtx.Templates.Fields = {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;#39;Engaged_IMG&amp;#39;: {&amp;#39;View&amp;#39;: renderField}&lt;br /&gt;&amp;nbsp;};&lt;br /&gt;&amp;nbsp;SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);&lt;br /&gt;})();&lt;/p&gt;&lt;p&gt;function renderField(ctx) {&lt;br /&gt;&amp;nbsp;return STSHtmlDecode(ctx.CurrentItem[ctx.CurrentFieldSchema.Name]);&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;Now, how do I do the same in my infopath form? I am using infopath to design the new / display / edit form but can&amp;#39;t get the HTML in the calculated field to render. It just displays as text &amp;lt;img .... The JSLink option in the webpart seems not to exist in this case.&lt;/p&gt;&lt;p&gt;Thank you,&lt;/p&gt;&lt;p&gt;Robert&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>