<?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>I have a checkbox with 6 options i want to enable my button only if all options</title><link>https://community.appian.com/discussions/f/user-interface/1800/i-have-a-checkbox-with-6-options-i-want-to-enable-my-button-only-if-all-options</link><description>I have a checkbox with 6 options i want to enable my button only if all options are selected. how i can achieve this with 7.3 version. i tried old JS syntext (window.FormAPI.getValue(&amp;quot;myFieldId&amp;quot;).id;) but seems like its not working anymore..... OriginalPostID</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I have a checkbox with 6 options i want to enable my button only if all options</title><link>https://community.appian.com/thread/6394?ContentTypeID=1</link><pubDate>Thu, 26 Dec 2013 09:49:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:718f1514-1bc7-4144-be98-aba551bb346f</guid><dc:creator>hemalathat</dc:creator><description>Hi,&lt;br /&gt;You can check the length of the checkbox values and show/hide the button accordingly.&lt;br /&gt;You can get the length of the check box using split function. &lt;br /&gt;Here is the sample code &lt;br /&gt;function checkBox(checkBoxID,buttonID)&lt;br /&gt;{&lt;br /&gt;var checkBoxValue =FormAPI.getValue(checkBoxID).id;&lt;br /&gt;var checkBoxLength=split(checkBoxValue,&amp;quot;;&amp;quot;).length;&lt;br /&gt;var checkBoxValueArray = checkBoxValue.split(_AE.uiDelimiter);&lt;br /&gt; FormAPI.hide(buttonID);&lt;br /&gt;  if(checkBoxValueArray.length==checkBoxLength)&lt;br /&gt;  {&lt;br /&gt;   FormAPI.show(buttonID);&lt;br /&gt;  }&lt;br /&gt;  else&lt;br /&gt;  {&lt;br /&gt;   FormAPI.hide(buttonID);&lt;br /&gt;  }&lt;br /&gt;}&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>