<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - math in checkbox field</title>
    <link>https://forums.adobe.com/community/acrobat/forms?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Thu, 06 Nov 2014 22:31:00 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-11-06T22:31:00Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: math in checkbox field</title>
      <link>https://forums.adobe.com/message/6906993?tstart=0#6906993</link>
      <description>&lt;!-- [DocumentBodyStart:8bccfba9-39b1-416a-939e-9381b2f86354] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;No, I don&amp;#8217;t get any errors.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:8bccfba9-39b1-416a-939e-9381b2f86354] --&gt;&lt;img src='/beacon?t=1415923104226' /&gt;</description>
      <pubDate>Thu, 06 Nov 2014 22:31:00 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6906993?tstart=0#6906993</guid>
      <dc:date>2014-11-06T22:31:00Z</dc:date>
      <clearspace:dateToText>1 week 1 hour ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: math in checkbox field</title>
      <link>https://forums.adobe.com/message/6906756?tstart=0#6906756</link>
      <description>&lt;!-- [DocumentBodyStart:ef68dd94-9ee6-4432-8cdf-95cbe66dbc7b] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Press Control+J to open the JavaScript console. Are there any errors in the console when you click on the checkboxes?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ef68dd94-9ee6-4432-8cdf-95cbe66dbc7b] --&gt;</description>
      <pubDate>Thu, 06 Nov 2014 21:22:57 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6906756?tstart=0#6906756</guid>
      <dc:date>2014-11-06T21:22:57Z</dc:date>
      <clearspace:dateToText>1 week 3 hours ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: math in checkbox field</title>
      <link>https://forums.adobe.com/message/6905936?tstart=0#6905936</link>
      <description>&lt;!-- [DocumentBodyStart:834a32fb-bf5e-45eb-8824-906d9a41d769] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;It didn&amp;#8217;t do what I am trying to achieve ☹&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:834a32fb-bf5e-45eb-8824-906d9a41d769] --&gt;</description>
      <pubDate>Thu, 06 Nov 2014 17:23:01 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6905936?tstart=0#6905936</guid>
      <dc:date>2014-11-06T17:23:01Z</dc:date>
      <clearspace:dateToText>1 week 7 hours ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: math in checkbox field</title>
      <link>https://forums.adobe.com/message/6904067?tstart=0#6904067</link>
      <description>&lt;!-- [DocumentBodyStart:c3101225-a4d6-438b-aeae-d2b8bcc945e4] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Try this:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;!--[CodeBlockStart:7ad7d0b4-a5dd-4c3d-99ee-2a4f7e2f8356][excluded]--&gt;&lt;pre class="javascript" name="code"&gt;
var Field1 = getField("AUTH NO_REMOVED");
if (event.target.value != "service1"){
Field1.readonly = false;
Field1.fillColor = color.white;
Field1.textColor = color.black;
Field1.borderColor = color.transparent;
} 
else {
Field1.value = "";
Field1.readonly = true;
Field1.fillColor = ["G", 0.75];
Field1.textColor = ["G", 0.5];
}

&lt;/pre&gt;&lt;!--[CodeBlockEnd:7ad7d0b4-a5dd-4c3d-99ee-2a4f7e2f8356]--&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:c3101225-a4d6-438b-aeae-d2b8bcc945e4] --&gt;</description>
      <pubDate>Thu, 06 Nov 2014 02:50:06 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6904067?tstart=0#6904067</guid>
      <dc:date>2014-11-06T02:50:06Z</dc:date>
      <clearspace:dateToText>1 week 21 hours ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>math in checkbox field</title>
      <link>https://forums.adobe.com/message/6903623?tstart=0#6903623</link>
      <description>&lt;!-- [DocumentBodyStart:d1a3c540-1795-4704-9ba8-5e74588e47e3] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I have a question. I have four check boxes , lets say A,B,C,D such that only one could be checked at a time. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have javascript for each checkbox such that when a box is checked, some fields are disabled and when the &lt;strong&gt;same&lt;/strong&gt; box is unchecked, the disabled fields are enabled again. For example, if box A is checked, then fields 1..10 are disabled and user can write only in fields 11&amp;hellip;20. When A is unchecked, all 20 fields are writable.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What I would like to do is if box B (or C/D) is checked (which will imply box A getting automatically unchecked), then the fields disabled by box A are enabled again without having to uncheck box A itself. How can I achieve that? Any advice/tips?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The checkboxes have the same field name but different export value to make them mutually exclusive. Checkbox field name is &lt;strong&gt;Service&lt;/strong&gt; and the 4 export values are &lt;strong&gt;service1, service2, service3, service4&lt;/strong&gt;.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am using the code below in the first checkbox (shortened version)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;var Field1 = getField("AUTH NO_REMOVED");&lt;/p&gt;&lt;p&gt;var service =getField("Service");&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;if (event.target.value == "service1")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // I tried using &lt;strong&gt;service&lt;/strong&gt; variable directly, but it only disables the fields upon checking but does not enable them&lt;/p&gt;&lt;p&gt;{&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Field1.readonly = true;&lt;/p&gt;&lt;p&gt;Field1.fillColor = ["G", 0.75];&lt;/p&gt;&lt;p&gt;Field1.textColor = ["G", 0.5];} &lt;/p&gt;&lt;p&gt;else {&lt;/p&gt;&lt;p&gt;Field1.value = "";&lt;/p&gt;&lt;p&gt;Field1.readonly = false;&lt;/p&gt;&lt;p&gt;Field1.fillColor = color.white;&lt;/p&gt;&lt;p&gt;Field1.textColor = color.black;&lt;/p&gt;&lt;p&gt;Field1.borderColor = color.transparent;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d1a3c540-1795-4704-9ba8-5e74588e47e3] --&gt;</description>
      <pubDate>Wed, 05 Nov 2014 23:27:53 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6903623?tstart=0#6903623</guid>
      <dc:date>2014-11-05T23:27:53Z</dc:date>
      <clearspace:dateToText>1 week 1 day ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

