<?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 : All Content - All Communities</title>
    <link>https://forums.adobe.com/</link>
    <description>All Content in Adobe Community</description>
    <language>en</language>
    <pubDate>Mon, 10 Nov 2014 17:28:55 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-11-10T17:28:55Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Is there a way to modify the schema-mapped XML that is generated by the submit action prior to submission?</title>
      <link>https://forums.adobe.com/thread/1631547</link>
      <description>&lt;!-- [DocumentBodyStart:94c612ec-91c7-4bb7-88fd-6eef4e53132a] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I have a form created in LiveCycle ES2. I have mapped some fields to a schema that causes LC to generate XML that adheres to the import format of one of my company's internal databases.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;There is one problem: the system's import function looks for a DTD DOCTYPE declaration between the XML declaration and root element. I've tried including the declaration in the schema, but LC does not include it in the mapped values or the export. I've spoken with the vendor about declaring the DTD as part of the import function and they have given a firm "No."&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is there a way to insert one line of markup into the XML that LC generates in the submit action before the XML is attached to the e-mail?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:94c612ec-91c7-4bb7-88fd-6eef4e53132a] --&gt;&lt;img src='/beacon?t=1415951277104' /&gt;</description>
      <pubDate>Mon, 10 Nov 2014 17:28:55 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1631547</guid>
      <dc:date>2014-11-10T17:28:55Z</dc:date>
      <clearspace:dateToText>2 days 13 hours ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>How to count ONLY fields with a specific value</title>
      <link>https://forums.adobe.com/thread/918597</link>
      <description>&lt;!-- [DocumentBodyStart:27658328-b756-4285-993a-8d4e6c2297cb] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I modified the code below from the API reference to count combobox fields with a value of "MT" so I could total the number of a specific choice the form user input. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;var count = 0;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;for (var i=0; i&amp;lt;this.numFields; i++) &lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;{&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;var fname = this.getNthFieldName(i);&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;if ( this.getField(fname).type == "combobox" &amp;amp;&amp;amp; this.getField(fname).value == "MT" ) count++; &lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;}&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;this.getField("mTurb").value = count.value;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here's the problem: I tried to use a similar script, modified only slightly from this form, in another total field to tally a different choice made with comboboxes and the script continues to tally the first choice. An example of one of the modified versions of the script is below.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;var gcount = 0;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;for (var i=0; i&amp;lt;this.numFields; i++) &lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;{&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;var gname = this.getNthFieldName(i);&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;if ( this.getField(gname).type == "combobox" &amp;amp;&amp;amp; this.getField(gname).value == "MT" ) gcount++; &lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;}&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;this.getField("gPack").value = gcount.value;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I suspect I'm just missing something painfully obvious to seasoned scripters, but I can't seem to figure it out and I need this script to be able to count the number of 9 different options in the comboboxes.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:27658328-b756-4285-993a-8d4e6c2297cb] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">count</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">value</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">combobox</category>
      <pubDate>Thu, 27 Oct 2011 21:56:03 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/918597</guid>
      <dc:date>2011-10-27T21:56:03Z</dc:date>
      <clearspace:dateToText>3 years 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>8</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Conditionally Required Fields</title>
      <link>https://forums.adobe.com/thread/839106</link>
      <description>&lt;!-- [DocumentBodyStart:8bd3396b-6332-4423-95ba-a248124bad23] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;div&gt;&lt;p&gt;Basics -&lt;/p&gt;&lt;p&gt;Running LC ES 8.2 and Acrobat 9 Pro and using Acrobat for this form.&lt;/p&gt;&lt;p&gt;Novice/Beginner in JavaScripting as a whole, especially as pertains to PDFs&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Situation -&lt;br/&gt;Trying&amp;nbsp; to set up a form wherein a field is required if one option from a combo&amp;nbsp; box is selected and to either be optional or removed otherwise.&lt;/p&gt;&lt;p&gt;I've&amp;nbsp; been trying "if ... else" statements without any luck. The field&amp;nbsp; (AbortRchgSA/#8) is set as Visible and not required by default. The&amp;nbsp; combo box (Mode/#16) is a required field. My attempts have taken two&amp;nbsp; forms.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Form 1:&lt;/p&gt;&lt;p&gt;var f = this.getField("Mode").value;&lt;/p&gt;&lt;p&gt;if (f = SA)&lt;/p&gt;&lt;p&gt;{var g = this.getField("AbortRchgSA");&lt;/p&gt;&lt;p&gt;g.required = true;}&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Form 2:&lt;/p&gt;&lt;p class="MsoNormal"&gt;if (this.Field.Mode.value == SA)&lt;/p&gt;&lt;p class="MsoNormal"&gt;this.getField(&amp;#8220;AbortRchgSA&amp;rdquo;) = required;&lt;/p&gt;&lt;p class="MsoNormal"&gt;else&lt;/p&gt;&lt;p class="MsoNormal"&gt;this.removeField(&amp;#8220;AbortRchgSA&amp;rdquo;);&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any and all help is welcome.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:8bd3396b-6332-4423-95ba-a248124bad23] --&gt;</description>
      <pubDate>Fri, 15 Apr 2011 20:23:06 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/839106</guid>
      <dc:date>2011-04-15T20:23:06Z</dc:date>
      <clearspace:dateToText>3 years 7 months ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Conditionally Required Fields</title>
      <link>https://forums.adobe.com/thread/839043</link>
      <description>&lt;!-- [DocumentBodyStart:952089ee-285b-46f7-9cc3-6e8a2abe08fd] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Basics -&lt;/p&gt;&lt;p&gt;Running LC ES 8.2 and Acrobat 9 Pro&lt;/p&gt;&lt;p&gt;Novice/Beginner in JavaScripting as a whole, especially as pertains to PDFs&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Situation -&lt;br/&gt;Trying to set up a form wherein a field is required if one option from a combo box is selected and to either be optional or removed otherwise.&lt;/p&gt;&lt;p&gt;I've been trying "if ... else" statements without any luck. The field (AbortRchgSA/#8) is set as Visible and not required by default. The combo box (Mode/#16) is a required field. My attempts have taken two forms.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Form 1:&lt;/p&gt;&lt;p&gt;var f = this.getField("Mode").value;&lt;/p&gt;&lt;p&gt;if (f = SA)&lt;/p&gt;&lt;p&gt;{var g = this.getField("AbortRchgSA");&lt;/p&gt;&lt;p&gt;g.required = true;}&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Form 2:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal"&gt;if (this.Field.Mode.value == SA)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal"&gt;this.getField(&amp;#8220;AbortRchgSA&amp;rdquo;) = required;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal"&gt;else&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal"&gt;this.removeField(&amp;#8220;AbortRchgSA&amp;rdquo;);&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any and all help is welcome.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:952089ee-285b-46f7-9cc3-6e8a2abe08fd] --&gt;</description>
      <pubDate>Fri, 15 Apr 2011 18:28:57 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/839043</guid>
      <dc:date>2011-04-15T18:28:57Z</dc:date>
      <clearspace:dateToText>3 years 7 months ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

