<?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>interface within interface</title><link>https://community.appian.com/discussions/f/user-interface/28751/interface-within-interface</link><description>when I click on reject it should pop up the below screen (comments) and hide the above form with buttons (cancel/approve/reject) and when I click on cancel for this 2nd interface , I need to get 1st interface again with 3 buttons hiding the comment form</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: interface within interface</title><link>https://community.appian.com/thread/113141?ContentTypeID=1</link><pubDate>Tue, 23 May 2023 08:08:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8aad31e2-5c64-4b2a-b63e-ed1f468af7d8</guid><dc:creator>ZAINAB</dc:creator><description>&lt;p&gt;Thank you ,It worked&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interface within interface</title><link>https://community.appian.com/thread/113124?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 20:25:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9be4ebc4-6e5d-429e-a5f4-3914ce70df8e</guid><dc:creator>shoaib.akhtar</dc:creator><description>&lt;p&gt;Try using this code, I believe this will suites your use case with &lt;em&gt;showWhen&lt;/em&gt;&amp;nbsp;property,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS: you can use &lt;em&gt;if else&lt;/em&gt; for the same scenario, just stack the &lt;em&gt;sectionLayouts &lt;/em&gt;(Interface1, Interface2) and check or any one condition&amp;nbsp;for pressed button.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  /*pressed button variable, default value have to be there for showing 1st interface*/
  local!pressedButton: &amp;quot;cancel&amp;quot;,
  a!sectionLayout(
    contents: {
      /*Interface 1*/
      a!sectionLayout(
        contents: {
          a!boxLayout(
            label: &amp;quot;Some form&amp;quot;,
            contents: {
              a!textField(label: &amp;quot;Comments&amp;quot;, readOnly: true),
              a!textField(label: &amp;quot;Start Date&amp;quot;, readOnly: true),
              a!textField(label: &amp;quot;End Date&amp;quot;, readOnly: true),
              a!textField(label: &amp;quot;Emial&amp;quot;, readOnly: true),
              
            }
          ),
          a!buttonLayout(
            primaryButtons: {
              a!buttonWidget(label: &amp;quot;approve&amp;quot;),
              a!buttonWidget(
                label: &amp;quot;reject&amp;quot;,
                value: &amp;quot;reject&amp;quot;,
                saveInto: local!pressedButton
              )
            },
            secondaryButtons: { a!buttonWidget(label: &amp;quot;cancel&amp;quot;) }
          )
        },
        showWhen: local!pressedButton = &amp;quot;cancel&amp;quot;
      ),
      /*Interface 2*/
      a!sectionLayout(
        contents: {
          a!boxLayout(
            label: &amp;quot;Some form&amp;quot;,
            contents: {
              a!paragraphField(label: &amp;quot;Comments&amp;quot;, readOnly: true)
            }
          ),
          a!buttonLayout(
            primaryButtons: {
              a!buttonWidget(
                label: &amp;quot;cancel&amp;quot;,
                value: &amp;quot;cancel&amp;quot;,
                saveInto: local!pressedButton
              ),
              a!buttonWidget(label: &amp;quot;submit&amp;quot;)
            }
          )
        },
        showWhen: local!pressedButton = &amp;quot;reject&amp;quot;
      )
    }
  )
)&lt;/pre&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interface within interface</title><link>https://community.appian.com/thread/113111?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 14:23:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f39b191b-3681-44c7-9ce0-794cea03657c</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If you&amp;#39;re getting errors, it&amp;#39;d be helpful to post screenshots of the actual errors too, and describe what user action(s) lead to the error(s) in question, etc.&amp;nbsp; Additionally it might be helpful for you to share your code (or at least relevant snippets) - and if you do, please be sure to use a Code Box.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1684765446010v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interface within interface</title><link>https://community.appian.com/thread/113103?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 13:21:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b3903c4d-5118-4dde-8624-ce85edd822ff</guid><dc:creator>Mallepu Prashanth </dc:creator><description>&lt;p&gt;You can achieve this using local variables by saving a value in local variable when user click on buttons and based on saved value in local variable you can apply it in showwhen in interfaces.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interface within interface</title><link>https://community.appian.com/thread/113102?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 13:16:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a25f2eeb-86c9-4f80-b2d1-29688730611d</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;Perhaps the simplest way is to create the &amp;quot;popup&amp;quot; as you call it as a separate component within it&amp;#39;s own Interface object, then call it from the larger&amp;nbsp;interface with a showWhen variable passed to it, or inside an if() function like if(local!commenting, rule!APP_commentInterface([parameters]), {}).&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll probably need to explain the errors that are happening when you try showWhen for us to help you further from there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interface within interface</title><link>https://community.appian.com/thread/113101?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 13:10:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:677f3f6f-c78b-4308-81e2-267e36be0c9f</guid><dc:creator>ZAINAB</dc:creator><description>&lt;p&gt;yes , i have few basic knowledge , I tired doing it using showwhen but getting errors .can you please help&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: interface within interface</title><link>https://community.appian.com/thread/113100?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 13:08:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d0172f65-c36e-4750-bb02-2d7bf35e3014</guid><dc:creator>laurensw</dc:creator><description>&lt;p&gt;There are numerous ways to configure in accordance with these requirements within a single interface.&lt;br /&gt;Have you followed any basic trainings yet in the Appian Academy?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>