<?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>How can I show/hide a component (like text input) using sail?</title><link>https://community.appian.com/discussions/f/user-interface/6708/how-can-i-show-hide-a-component-like-text-input-using-sail</link><description>Hi guys, how i can show/hide a component (like text input) using sail? I can&amp;#39;t find any information about a &amp;quot;visibility&amp;quot; option for a component... Best Regards 
 OriginalPostID-189127 
 OriginalPostID-189127</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How can I show/hide a component (like text input) using sail?</title><link>https://community.appian.com/thread/66064?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 14:30:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da7382e1-645d-4686-afb7-68d07bf63b94</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;this thread is from over 3 years ago...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I show/hide a component (like text input) using sail?</title><link>https://community.appian.com/thread/66059?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 13:11:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cb31076c-2202-4f32-a48b-b59e7ca9c93f</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;Either surround in an if(), such as:&lt;/p&gt;
&lt;p&gt;if(&lt;/p&gt;
&lt;p&gt;[boolean expression],&lt;/p&gt;
&lt;p&gt;a!sailComponent(parameters: ),&lt;/p&gt;
&lt;p&gt;{}&lt;/p&gt;
&lt;p&gt;),&lt;/p&gt;
&lt;p&gt;or the vastly better showWhen parameter that Appian has so wonderfully been adding to virtually all components.&amp;nbsp; It does the same thing, but far simpler:&lt;/p&gt;
&lt;p&gt;a!sailComponent(&lt;/p&gt;
&lt;p&gt;parameter:&lt;/p&gt;
&lt;p&gt;otherParameter:&lt;/p&gt;
&lt;p&gt;showWhen: [boolean expression]&lt;/p&gt;
&lt;p&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I show/hide a component (like text input) using sail?</title><link>https://community.appian.com/thread/66058?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 12:37:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c881935d-14ba-40e6-927c-d4d2bd1a6789</guid><dc:creator>Amit Bhardwaj</dc:creator><description>&lt;p&gt;Page is not opening&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I show/hide a component (like text input) using sail?</title><link>https://community.appian.com/thread/26441?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2016 19:15:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:86068bc4-ce4f-4f1b-ada2-d9055ce3e0ca</guid><dc:creator>fredericom</dc:creator><description>Thank you guys :)&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I show/hide a component (like text input) using sail?</title><link>https://community.appian.com/thread/26440?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2016 19:14:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:39fa5f12-a70a-45f4-87e9-c44c0bbf3b0e</guid><dc:creator>Tim</dc:creator><description>Components do not have visibility options rather they should be hidden/shown based on the result of a test. There are multiple examples here, have a good look through.&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/help/7.11/SAIL_Recipes.html"&gt;forum.appian.com/.../SAIL_Recipes.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I show/hide a component (like text input) using sail?</title><link>https://community.appian.com/thread/26439?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2016 19:14:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ddc5d7e6-2324-4340-bcb3-65707f0988dd</guid><dc:creator>Jacob Cohen - Project Leader - Macedon Technologies</dc:creator><description>You can surround the component in an if() and dynamically render it based on the if condition. For example, if(ri!var = 5, a!textField(), {}).&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>