<?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>Toggle button</title><link>https://community.appian.com/discussions/f/user-interface/28088/toggle-button</link><description>I want to use the toggle button (highlighted below) in my user interface - similar to that used in the Profile Settings --&amp;gt; Email notifications interface. 
 Is this available anywhere or on the Appmarket? 
 Thanks!</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Toggle button</title><link>https://community.appian.com/thread/119228?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 13:49:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:98523c4a-a762-4f3e-ab4b-b5a222384f70</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;When you wrap the richt text field in a card layout, you cannot use that component in a side-by-side layout anymore.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle button</title><link>https://community.appian.com/thread/119227?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 13:48:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2e70b1b7-6852-4277-b149-5715a714f39c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1694699259528v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle button</title><link>https://community.appian.com/thread/119201?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 08:18:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:93dfc288-b983-4cfe-811b-1a56763b563d</guid><dc:creator>saikiranb654094</dc:creator><description>&lt;p&gt;a!localVariables(&lt;br /&gt; local!a:true,&lt;br /&gt; a!cardLayout(&lt;br /&gt; contents:{&lt;br /&gt; a!richTextDisplayField(&lt;br /&gt; value:a!richTextIcon(&lt;br /&gt; icon: &amp;quot;toggle-off&amp;quot;,&lt;br /&gt; color:&amp;quot;ACCENT&amp;quot;,&lt;br /&gt; size:&amp;quot;MEDIUM_PLUS&amp;quot;,&lt;br /&gt; link: a!dynamicLink(&lt;br /&gt; saveInto: a!save(local!a,false)&lt;br /&gt; ),&lt;br /&gt; linkStyle: &amp;quot;STANDALONE&amp;quot;&lt;br /&gt; ),&lt;br /&gt; showWhen:toboolean(local!a)&lt;br /&gt; ),&lt;br /&gt; a!richTextDisplayField(&lt;br /&gt; value:a!richTextIcon(&lt;br /&gt; icon: &amp;quot;toggle-on&amp;quot;,&lt;br /&gt; color:&amp;quot;ACCENT&amp;quot;,&lt;br /&gt; size:&amp;quot;MEDIUM_PLUS&amp;quot;,&lt;br /&gt; link: a!dynamicLink(&lt;br /&gt; saveInto: a!save(local!a,true)&lt;br /&gt; ),&lt;br /&gt; linkStyle: &amp;quot;STANDALONE&amp;quot;&lt;br /&gt; ),&lt;br /&gt; showWhen:toboolean( local!a)= false&lt;br /&gt; ),&lt;br /&gt; }&lt;br /&gt; )&lt;br /&gt; &lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;use this code for toggle button&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle button</title><link>https://community.appian.com/thread/109467?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 14:56:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3626d47f-c6d3-416e-8f1b-fd7be8a4aeb5</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I do enjoy the fact that now in 23.1 we can start assembling &lt;em&gt;our own&lt;/em&gt; component libraries.&amp;nbsp; I already had a half dozen or so, and it&amp;#39;s nice to have a central place to organize them now.&amp;nbsp; However (and not to gripe about a nice new feature) i do find it a bit annoying that the &lt;em&gt;Design Library&lt;/em&gt; tab lists &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;&lt;strong&gt;every single app package&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt; any of the added elements are in... that makes it quite a bit... &lt;em&gt;busy&lt;/em&gt;.... on my dev environment.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1678892256884v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle button</title><link>https://community.appian.com/thread/109464?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 14:41:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8dc1fb9d-9180-4321-8a4c-15cc9904541d</guid><dc:creator>Abhay Dalsaniya</dc:creator><description>&lt;p&gt;Agree with all the comments.&amp;nbsp;It will be lot more easier if Appian comes up with these kind of basic component library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle button</title><link>https://community.appian.com/thread/109462?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 14:39:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:abdc109b-0a49-4be7-a6d9-f567d1b7c11e</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;even better - when you&amp;#39;re the poster of the topic, you also get a &amp;quot;verify answer&amp;quot; button appearing on submitted answers.&amp;nbsp; But yes I agree, it&amp;#39;s customary and helpful to give out the &amp;quot;green&amp;quot; lol - and preferably in order of answer submitted&amp;nbsp;&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f609.svg" title="Wink"&gt;&amp;#x1f609;&lt;/span&gt;&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1678891291728v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle button</title><link>https://community.appian.com/thread/109460?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 14:36:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5459143-81ee-495d-8033-f366361910d2</guid><dc:creator>aditya007</dc:creator><description>&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1678890991291v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Hi, Please up vote as well :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle button</title><link>https://community.appian.com/thread/109459?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 14:32:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f640b619-c068-4495-87d0-3deaf4fcfbb2</guid><dc:creator>Debesh</dc:creator><description>&lt;p&gt;thanks Aditya - will give it a go!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle button</title><link>https://community.appian.com/thread/109458?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 14:28:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:87127f88-c575-460f-8202-d0989e08c1e9</guid><dc:creator>Debesh</dc:creator><description>&lt;p&gt;ahh perfect - will give it a go - thanks Mike!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle button</title><link>https://community.appian.com/thread/109456?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 14:13:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:df54e510-4317-4372-bf5d-5316c2efd633</guid><dc:creator>aditya007</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!value: true,
  a!richTextDisplayField(
    value: {
      a!richTextItem(
        size: &amp;quot;MEDIUM_PLUS&amp;quot;,
        text: {
          a!richTextIcon(
            icon: &amp;quot;toggle-on&amp;quot;,
            showWhen: local!value = true,
            link: a!dynamicLink(
              saveInto: {
                a!save(local!value, false)
              }
            ),
            linkStyle: &amp;quot;STANDALONE&amp;quot;
          ),
          a!richTextIcon(
            icon: &amp;quot;toggle-off&amp;quot;,
            showWhen: local!value =false,
            link: a!dynamicLink(
              saveInto: {
                a!save(local!value,true)
              }
            ),
            linkStyle: &amp;quot;STANDALONE&amp;quot;
          )
        }
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Hi, you can use&lt;span&gt;&amp;nbsp;Rich Text Display Field containing a Rich Text Icon using the &amp;quot;toggle-on&amp;quot; / &amp;quot;toggle-off&amp;quot; icons. And on links use dynamic link to update the variable value.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Toggle button</title><link>https://community.appian.com/thread/109455?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 14:10:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:68bc959e-27a6-43ae-9372-47869b259acd</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;That seems to be one of the components they keep for behind-the-hood use within the Appian UI itself (though in this case i&amp;#39;m not sure why).&amp;nbsp; However you could definitely build a component that does something similar in functionality (minus any cool animations anyway), using a Rich Text Display Field containing a Rich Text Icon using the &amp;quot;toggle-on&amp;quot; / &amp;quot;toggle-off&amp;quot; icons.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!localVariables(
  local!value: &amp;quot;on&amp;quot;,
  
  a!richTextDisplayField(
    value: {
      a!richTextItem(
        size: &amp;quot;MEDIUM_PLUS&amp;quot;,
        text: {
          a!richTextIcon(
            icon: &amp;quot;toggle-on&amp;quot;,
            showWhen: local!value = &amp;quot;on&amp;quot;,
            link: a!dynamicLink(
              saveInto: {
                a!save(local!value, &amp;quot;off&amp;quot;)
              }
            ),
            linkStyle: &amp;quot;STANDALONE&amp;quot;
          ),
          a!richTextIcon(
            icon: &amp;quot;toggle-off&amp;quot;,
            showWhen: local!value = &amp;quot;off&amp;quot;,
            link: a!dynamicLink(
              saveInto: {
                a!save(local!value, &amp;quot;on&amp;quot;)
              }
            ),
            linkStyle: &amp;quot;STANDALONE&amp;quot;
          )
        }
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1678889736893v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>