<?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>Display the Field, based on user selection by Radiobutton.!</title><link>https://community.appian.com/discussions/f/general/25801/display-the-field-based-on-user-selection-by-radiobutton</link><description>a!radioButtonField( label: &amp;quot;Status&amp;quot;, choiceLabels:{&amp;quot;APPROVE&amp;quot;,&amp;quot;REJECT&amp;quot;,&amp;quot;RETURN&amp;quot;}, choiceValues: :{&amp;quot;APPROVE&amp;quot;,&amp;quot;REJECT&amp;quot;,&amp;quot;RETURN&amp;quot;} ), 
 a!paragraphField( showwhen(...) 
 ) 
 *if user selects Reject or Return, then only show the Paragraph field.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Display the Field, based on user selection by Radiobutton.!</title><link>https://community.appian.com/thread/100755?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 13:46:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26e5e71f-63e2-4ea8-a625-fa2e199e5f4d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;&amp;quot;ShowWhen&amp;quot; requires a boolean value (or null, which almost always evaluates as &amp;quot;true&amp;quot; by default).&amp;nbsp; You can pass literally any boolean or &amp;quot;expression that evaluates as a boolean&amp;quot; to a ShowWhen parameter.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Beyond this, I typically recommend developers actually establish a local variable that will evaluate the logic and store the resulting boolean itself, as this functional abstraction helps with code readability and cuts way down on repetitive logic when similar code is needed elsewhere on a form (like if you had 4 or 5 fields all relying on the same condition for display, etc).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display the Field, based on user selection by Radiobutton.!</title><link>https://community.appian.com/thread/100754?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 13:43:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:993378be-d286-48db-8dbb-476118bfeffe</guid><dc:creator>thiliniumesha</dc:creator><description>&lt;p&gt;hi, I think this will help you. Create two rule inputs as value and paravalue.&lt;/p&gt;
&lt;p&gt;{&lt;br /&gt; a!radioButtonField(&lt;br /&gt; label: &amp;quot;Status&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; choiceLabels: {&amp;quot;APPROVE&amp;quot;,&amp;quot;REJECT&amp;quot;,&amp;quot;RETURN&amp;quot;},&lt;br /&gt; choiceValues: {&amp;quot;APPROVE&amp;quot;,&amp;quot;REJECT&amp;quot;,&amp;quot;RETURN&amp;quot;},&lt;br /&gt; value: ri!value,&lt;br /&gt; saveInto: {ri!value},&lt;br /&gt; choiceLayout: &amp;quot;STACKED&amp;quot;,&lt;br /&gt; validations: {}&lt;br /&gt; ),&lt;br /&gt; a!paragraphField(&lt;br /&gt; label: &amp;quot;Paragraph&amp;quot;,&lt;br /&gt; labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt; value: ri!paravalue,&lt;br /&gt; saveInto: {ri!paravalue},&lt;br /&gt; refreshAfter: &amp;quot;UNFOCUS&amp;quot;,&lt;br /&gt; height: &amp;quot;MEDIUM&amp;quot;,&lt;br /&gt; validations: {},&lt;br /&gt; showWhen: or(ri!value=&amp;quot;REJECT&amp;quot;,ri!value=&amp;quot;RETURN&amp;quot;)&lt;br /&gt; )&lt;br /&gt; &lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Display the Field, based on user selection by Radiobutton.!</title><link>https://community.appian.com/thread/100752?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 13:12:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2f83bcba-2910-4c7c-af09-6299a4b5899f</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;What is your question here? If it is about how you do it, then you must be saving the radio button selection somewhere. You can just use that variable to compare it with the needed value in front of showWhen.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>