<?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>Radio Button Not Saving after clicking off</title><link>https://community.appian.com/discussions/f/general/26884/radio-button-not-saving-after-clicking-off</link><description>EDIT: Got the value to save but the dropdown box doesn&amp;#39;t show up when the correct value (boolean true) is selected 
 - working improperly - working properly</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Radio Button Not Saving after clicking off</title><link>https://community.appian.com/thread/105651?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 15:59:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:097ae9a8-72f2-4e83-85d9-1648c44f6561</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;One thing you should note is that if that value starts out as empty (null, as opposed to true or false), then it might do something unexpected for you: the showWhen parameter defaults to &amp;quot;true&amp;quot; (i.e. passing in a null value is the same as if you passed in nothing), so you might need to also check that in the showWhen parameter.&amp;nbsp; The easy way to do that these days is to wrap the value in a!defaultValue(), like &amp;quot;a!defaultValue( [record type code], false())&amp;quot; (meaning when the record type value resolves as &amp;quot;null()&amp;quot;, the showWhen will see a value of &amp;quot;false&amp;quot; and thus stay hidden).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Button Not Saving after clicking off</title><link>https://community.appian.com/thread/105650?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 15:56:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5d01a654-db15-4bfa-abf5-f122f5e51c04</guid><dc:creator>davinar9817</dc:creator><description>&lt;p&gt;Not sure why it wasn&amp;#39;t working before, but it works now, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Button Not Saving after clicking off</title><link>https://community.appian.com/thread/105649?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 15:46:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a6dea49a-1ddc-44b5-8451-4db27c766b4a</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;m not clear what you&amp;#39;re actually trying here.&amp;nbsp; Considering your current setup, the code for your dropdown would be changed so that the &amp;quot;showWhen&amp;quot; reflects the save value of your radio button, similar to your previous thread except now referring to the record type data.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!dropdownField(
  label: &amp;quot;Which Department Requires Access?&amp;quot;,
  labelPosition: &amp;quot;ABOVE&amp;quot;,
  placeholder: &amp;quot;--- Select a Value ---&amp;quot;,
  choiceLabels: cons!DS_deptChoice1,
  choiceValues: cons!DS_deptChoice1,
  value: ri!deptChoice1,
  saveInto: ri!deptChoice1,
  searchDisplay: &amp;quot;AUTO&amp;quot;,
  showWhen: ri!record[&amp;#39;recordType!{d327a5dc-18d4-4ffd-8bdf-6a22b134677f}DS Contractor.fields.{2463d484-b544-48a5-813c-701935313606}jiraAccess&amp;#39;],
  required: true(),
  
  validations: {}
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Button Not Saving after clicking off</title><link>https://community.appian.com/thread/105647?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 15:34:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6c2f4fc-e4ba-4cfd-9934-47b71567acbe</guid><dc:creator>davinar9817</dc:creator><description>&lt;p&gt;So the radio button that I have, when it has a &amp;#39;true&amp;#39; value, a dropdown is displayed. Ideally, I&amp;#39;d be saving it into the recordtype!field that it corresponds to. When I do save it into its corresponding value, the button choice is saved. However, the dropdown doesn&amp;#39;t display due to relying on a rule input inside of the interface.&amp;nbsp;&lt;br /&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1671118485822v1.png" alt=" " /&gt;&amp;nbsp;(how the interface rule input helps to display it)&lt;br /&gt;&lt;br /&gt;&lt;img src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/11/pastedimage1671118533167v2.png" alt=" " /&gt;&amp;nbsp;( what I want it to stay as)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Button Not Saving after clicking off</title><link>https://community.appian.com/thread/105646?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 15:28:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d1616e30-5d33-459b-9345-0bcb06d558fd</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;What&amp;#39;s it doing incorrectly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Button Not Saving after clicking off</title><link>https://community.appian.com/thread/105643?ContentTypeID=1</link><pubDate>Thu, 15 Dec 2022 14:44:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a9c29413-74da-4ebc-8af7-d5e7a0248fb1</guid><dc:creator>davinar9817</dc:creator><description>&lt;p&gt;How do I use the recordtype! field with showWhen? The save target is a boolean and doesn&amp;#39;t seem to want to cooperate&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Radio Button Not Saving after clicking off</title><link>https://community.appian.com/thread/105616?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 22:38:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:575116b6-09af-46cb-87b6-0d04b424e1bb</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="195714" url="~/discussions/f/general/26884/radio-button-not-saving-after-clicking-off"]but the dropdown box doesn&amp;#39;t show up when the correct value (boolean true) is selected[/quote]
&lt;p&gt;That&amp;#39;s because your showWhen in the dropdown field is still referring to &amp;quot;ri!radioValues2&amp;quot;, which is no longer the save target of your Radio Button component.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>