{"id":15231,"date":"2015-09-29T16:21:42","date_gmt":"2015-09-29T15:21:42","guid":{"rendered":"https:\/\/help.instantatlas.com\/dashboard-builder-desktop\/desktop-user-guide\/the-instantatlas-designer\/creating-a-new-design\/substitution-variables\/"},"modified":"2019-09-12T16:12:57","modified_gmt":"2019-09-12T15:12:57","slug":"substitution-variables","status":"publish","type":"page","link":"https:\/\/help.instantatlas.com\/instantatlas-desktop\/en\/welcome\/desktop-user-guide\/the-instantatlas-designer\/creating-a-new-design\/substitution-variables\/","title":{"rendered":"Substitution Variables"},"content":{"rendered":"<p>Substitution variables can be used in chart tips, component titles and table column headings.<\/p>\n<p>Each variable has the format <span class=\"code\">${variableName}<\/span>.<\/p>\n<p>The dollar sign and curly brackets <span class=\"code\">${}<\/span> indicate that the text is a variable.<\/p>\n<p>A simple example of a variable might be for the current indicator name <span class=\"code\">${indicatorName}<\/span>.<\/p>\n<p>When the user selects a new indicator the text <span class=\"code\">${indicatorName}<\/span> will be automatically substituted with the name of the selected indicator.<\/p>\n<p>The variables can be combined with regular text like this.<\/p>\n<p><span class=\"code\">${indicatorName} for date ${date}<\/span>.<\/p>\n<p>Simple html elements may be used to format your text. In this example the indicator name is placed on a new line and written in bold.<\/p>\n<p><span class=\"code\">${themeName} &lt;br\/&gt; &lt;b&gt;${indicatorName}&lt;\/b&gt;<\/span>.<\/p>\n<p>You can also use conditional statements. This one checks if a filter has been set and writes out &#8216;The filter value is&#8217; if that is the case.<\/p>\n<p><span class=\"code\">${notEmpty(filterName, &#8216;The filter value is&#8217;)} ${filterValue}<\/span><\/p>\n<p>For further details on the substitution variables available see the section &#8216;<a href=\"https:\/\/tools.instantatlas.com\/customers\/support\/library\/desktop\/tech-articles\/html\/substitution-variables\" target=\"_blank\" rel=\"noopener noreferrer\">Substitution Variables<\/a>&#8216; in the IA Resource Library.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Substitution variables can be used in chart tips, component titles and table column headings. Each variable has the format ${variableName}. The dollar sign and curly brackets ${} indicate that the text is a variable. A simple example of a variable might be for the current indicator name ${indicatorName}. When the user selects a new indicator &hellip; <a href=\"https:\/\/help.instantatlas.com\/instantatlas-desktop\/en\/welcome\/desktop-user-guide\/the-instantatlas-designer\/creating-a-new-design\/substitution-variables\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Substitution Variables<\/span><\/a><\/p>\n","protected":false},"author":22,"featured_media":0,"parent":4941,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-15231","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.instantatlas.com\/instantatlas-desktop\/wp-json\/wp\/v2\/pages\/15231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.instantatlas.com\/instantatlas-desktop\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.instantatlas.com\/instantatlas-desktop\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.instantatlas.com\/instantatlas-desktop\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/help.instantatlas.com\/instantatlas-desktop\/wp-json\/wp\/v2\/comments?post=15231"}],"version-history":[{"count":0,"href":"https:\/\/help.instantatlas.com\/instantatlas-desktop\/wp-json\/wp\/v2\/pages\/15231\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/help.instantatlas.com\/instantatlas-desktop\/wp-json\/wp\/v2\/pages\/4941"}],"wp:attachment":[{"href":"https:\/\/help.instantatlas.com\/instantatlas-desktop\/wp-json\/wp\/v2\/media?parent=15231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}