<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/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>Pop Up on a condition</title><link>https://community.appian.com/discussions/f/new-to-appian/22117/pop-up-on-a-condition</link><description>Hi All, 
 
 I have a use case to display pop up on click of a button. However it should be displayed only if specific flag is set to true. Can this be achieved ? 
 local!isDataEdited : false(), /*Confirm Message should only pop when this flag is set to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Pop Up on a condition</title><link>https://community.appian.com/thread/86632?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 06:02:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4a4a04b-a882-40ff-9e00-42c2e3c898dc</guid><dc:creator>Selvakumar Kumarasamy</dc:creator><description>&lt;p&gt;A &lt;strong&gt;if()&lt;/strong&gt; should do the job.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!isDataEdited: false(),
  /*Confirm Message should only pop when this flag is set to true*/
  a!buttonWidget(
    label: &amp;quot;Back&amp;quot;,
    icon: &amp;quot;repeat&amp;quot;,
    saveinto: {},
    submit: true,
    style: &amp;quot;PRIMARY&amp;quot;,
    validate: false(),
    confirmHeader: &amp;quot;&amp;quot;,
    confirmMessage: if(
      local!isDataEdited,
      &amp;quot;Any changes will be lost if you continue to navigate away from this page.&amp;quot;,
      &amp;quot;&amp;quot;
    ),
    confirmButtonLabel: &amp;quot;Continue&amp;quot;,
    cancelButtonLabel: &amp;quot;Cancel&amp;quot;
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>