<?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>Defaulted checkboxes</title><link>https://community.appian.com/discussions/f/user-interface/8314/defaulted-checkboxes</link><description>Hi All Just curious if anyone has come across a situation where, based on what is selected in a dropdown field, certain checkboxes would appear already ticked and with the value/s stored in an ri? I was able to have the default values selected based on</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Defaulted checkboxes</title><link>https://community.appian.com/thread/36374?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2016 11:18:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:54fb5df5-56ac-49a5-81d6-2ba8206c0618</guid><dc:creator>sikhivahans</dc:creator><description>@ryant There isn't really a necessity for local variables for saving the value of the component in this case(as mentioned in the first comment) as it results in duplication of variables(one local and one rule input variable for each component) and it also additional logic for saving the values from local variables to rule inputs in the same or other SAIL component.&lt;br /&gt;&lt;br /&gt;It might be worth opting for local variables in the case of choiceLabels, choiceValues and rule input variables for saving the value associated with a component. This way, Save Changes also works even if the User changes the default values associated with a SAIL component and moves out of the form by clicking 'Save Changes'.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Defaulted checkboxes</title><link>https://community.appian.com/thread/36373?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2016 11:06:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27729bad-6526-471e-84b4-a60bb652b1bd</guid><dc:creator>venkateshs329</dc:creator><description>As mentioned try below code.&lt;br /&gt;Note: rule input is multiple text values&lt;br /&gt;&lt;br /&gt;load(&lt;br /&gt;local!test,&lt;br /&gt;a!sectionLayout(&lt;br /&gt;  label: &amp;quot;&amp;quot;,&lt;br /&gt;  firstColumnContents: {&lt;br /&gt;    a!dropdownField(&lt;br /&gt;      label: &amp;quot;Dropdown1&amp;quot;,&lt;br /&gt;      labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt;      choiceLabels:{&amp;quot;value1&amp;quot;,&amp;quot;Value2&amp;quot;},&lt;br /&gt;      placeholderLabel:&amp;quot;---Select a Value---&amp;quot;,&lt;br /&gt;      choiceValues:{&amp;quot;value1&amp;quot;,&amp;quot;Value2&amp;quot;},&lt;br /&gt;      value:local!test,&lt;br /&gt;      saveInto: {local!test,&lt;br /&gt;      a!save(ri!checkBoxValues,local!test)&lt;br /&gt;      },&lt;br /&gt;      refreshAfter: &amp;quot;UNFOCUS&amp;quot;,&lt;br /&gt;      validations: {}&lt;br /&gt;    ),&lt;br /&gt;    a!checkboxField(&lt;br /&gt;      label: &amp;quot;Checkbox&amp;quot;,&lt;br /&gt;      labelPosition: &amp;quot;ABOVE&amp;quot;,&lt;br /&gt;      choiceLabels:{&amp;quot;value1&amp;quot;,&amp;quot;Value2&amp;quot;},&lt;br /&gt;      choiceValues:{&amp;quot;value1&amp;quot;,&amp;quot;Value2&amp;quot;},&lt;br /&gt;      value:local!test,&lt;br /&gt;      saveInto: {ri!checkBoxValues},&lt;br /&gt;      refreshAfter: &amp;quot;UNFOCUS&amp;quot;,&lt;br /&gt;      validations: {}&lt;br /&gt;    )  }, &lt;br /&gt; secondColumnContents: {&lt;br /&gt;  },&lt;br /&gt;  validations: {}&lt;br /&gt;)&lt;br /&gt;)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Defaulted checkboxes</title><link>https://community.appian.com/thread/36372?ContentTypeID=1</link><pubDate>Tue, 30 Aug 2016 10:42:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:99bd73f3-f909-43e9-ac76-9e222dcf537a</guid><dc:creator>bhanuprakashm</dc:creator><description>Hi ryant122,&lt;br /&gt;&lt;br /&gt;It is auto selected values,so you can do one thing for this..first you can save those values local! and in the button submit u can save the local! values in ri!...&lt;br /&gt;it will work.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>