<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: What About the Other Field?</title>
	<atom:link href="http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/</link>
	<description>Building intelligent forms using Adobe LiveCycle Designer</description>
	<pubDate>Sat, 22 Nov 2008 22:55:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Melissa Templeton</title>
		<link>http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-32166</link>
		<dc:creator>Melissa Templeton</dc:creator>
		<pubDate>Tue, 28 Oct 2008 14:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-32166</guid>
		<description>Thanks Stefan. I really apprecaite your assistance. =) Looks great!</description>
		<content:encoded><![CDATA[<p>Thanks Stefan. I really apprecaite your assistance. =) Looks great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-31995</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Fri, 24 Oct 2008 19:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-31995</guid>
		<description>Melissa Templeton,

I see. What you need to do is handle the Change event on the drop down list. In the event, look at the xfa.event.newText property which will be set to the new selection. Note that if you list items have text and value data that differ and you need the value data, you'll need to use the boundItem list function on the newText value to get it:

&lt;pre&gt;&lt;code&gt;var newSelection = xfa.event.newText;
var boundValue = this.boundItem(newSelection); // to get the value data associated with the new selected item, if you need it

if (boundValue == "yes")
    this.fillColor = "255,0,0";
else
    this.fillColor = "255,255,255";&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Melissa Templeton,</p>
<p>I see. What you need to do is handle the Change event on the drop down list. In the event, look at the xfa.event.newText property which will be set to the new selection. Note that if you list items have text and value data that differ and you need the value data, you&#8217;ll need to use the boundItem list function on the newText value to get it:</p>
<pre><code>var newSelection = xfa.event.newText;
var boundValue = this.boundItem(newSelection); // to get the value data associated with the new selected item, if you need it

if (boundValue == "yes")
    this.fillColor = "255,0,0";
else
    this.fillColor = "255,255,255";</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Melissa Templeton</title>
		<link>http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-31991</link>
		<dc:creator>Melissa Templeton</dc:creator>
		<pubDate>Fri, 24 Oct 2008 19:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-31991</guid>
		<description>Stefan,

I looked over your article; however I am still unsure as to how to only fill the field when 'Yes' is selected. If 'No' is selected, I do not want the field to appear as colored. 

Maybe I am just having "a blonde moment".

Thanks!
Melissa</description>
		<content:encoded><![CDATA[<p>Stefan,</p>
<p>I looked over your article; however I am still unsure as to how to only fill the field when &#8216;Yes&#8217; is selected. If &#8216;No&#8217; is selected, I do not want the field to appear as colored. </p>
<p>Maybe I am just having &#8220;a blonde moment&#8221;.</p>
<p>Thanks!<br />
Melissa</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-31983</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Fri, 24 Oct 2008 15:06:01 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-31983</guid>
		<description>Melissa Templeton,

Have a look at my article on setting the &lt;a href="http://forms.stefcameron.com/2008/03/14/field-background-color-fill/" rel="nofollow"&gt;field background color&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Melissa Templeton,</p>
<p>Have a look at my article on setting the <a href="http://forms.stefcameron.com/2008/03/14/field-background-color-fill/" rel="nofollow">field background color</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Melissa Templeton</title>
		<link>http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-31780</link>
		<dc:creator>Melissa Templeton</dc:creator>
		<pubDate>Tue, 21 Oct 2008 20:09:39 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-31780</guid>
		<description>Of course pasted too quickly. Please see the script below:
&#60;field h="1.8549mm" name="DropDownList1" w="35.4598mm" x="30.0253mm" y="25mm"&#62;
            &#60;ui&#62;
               &#60;choiceList&#62;
                  &#60;border hand="right"&#62;
                     &#60;edge presence="hidden" cap="butt"/&#62;
                     &#60;corner presence="hidden"/&#62;
                  &#60;/border&#62;
               &#60;/choiceList&#62;
            &#60;/ui&#62;
            &#60;font size="6pt" typeface="Myriad Pro"/&#62;
            &#60;para vAlign="middle"/&#62;
            &#60;items save="1"&#62;
               &#60;text&#62;No
               &#60;text&#62;Yes
            &#60;/items&#62;
         &#60;/field&#62;</description>
		<content:encoded><![CDATA[<p>Of course pasted too quickly. Please see the script below:<br />
&lt;field h=&#8221;1.8549mm&#8221; name=&#8221;DropDownList1&#8243; w=&#8221;35.4598mm&#8221; x=&#8221;30.0253mm&#8221; y=&#8221;25mm&#8221;&gt;<br />
            &lt;ui&gt;<br />
               &lt;choiceList&gt;<br />
                  &lt;border hand=&#8221;right&#8221;&gt;<br />
                     &lt;edge presence=&#8221;hidden&#8221; cap=&#8221;butt&#8221;/&gt;<br />
                     &lt;corner presence=&#8221;hidden&#8221;/&gt;<br />
                  &lt;/border&gt;<br />
               &lt;/choiceList&gt;<br />
            &lt;/ui&gt;<br />
            &lt;font size=&#8221;6pt&#8221; typeface=&#8221;Myriad Pro&#8221;/&gt;<br />
            &lt;para vAlign=&#8221;middle&#8221;/&gt;<br />
            &lt;items save=&#8221;1&#8243;&gt;<br />
               &lt;text&gt;No<br />
               &lt;text&gt;Yes<br />
            &lt;/items&gt;<br />
         &lt;/field&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Melissa Templeton</title>
		<link>http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-31779</link>
		<dc:creator>Melissa Templeton</dc:creator>
		<pubDate>Tue, 21 Oct 2008 20:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-31779</guid>
		<description>Hi! 

I have an issue with coding a background color into a specific selection on a drop down menu within LiveCycle Designer 8.0. Could you please point me in the right direction?

               No
               Yes

Upon selection of “Yes”, I would like the field background color and/or font color to change. I have tried several solutions, and I am unable to find any answers.

Thanks!!</description>
		<content:encoded><![CDATA[<p>Hi! </p>
<p>I have an issue with coding a background color into a specific selection on a drop down menu within LiveCycle Designer 8.0. Could you please point me in the right direction?</p>
<p>               No<br />
               Yes</p>
<p>Upon selection of “Yes”, I would like the field background color and/or font color to change. I have tried several solutions, and I am unable to find any answers.</p>
<p>Thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-31200</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Tue, 14 Oct 2008 13:52:39 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-31200</guid>
		<description>Cindy,

Unfortunately, validations in XFA forms don't really work the way you would expect them to. At the moment, you're still better-off implementing your own script to validate the fields you care about unless you only care about mandatory fields being empty or filled. If it's that simple, then setting a field's "Object palette &gt; Value tab &gt; Type property" to "User Entered - Required" will prevent the form from being submitted if that field is empty. If you want to prevent printing, saving or web service execution if form fields aren't filled, then see my article on &lt;a href="http://forms.stefcameron.com/2008/04/13/prevent-printing-pdf-forms-in-acrobat-8/" rel="nofollow"&gt;preventing a form from being printed&lt;/a&gt;.

If you need to do something more complicated than that, then you'll need to implement your own solution. I would start by implementing the &lt;a href="http://forms.stefcameron.com/2006/08/24/complex-validations/" rel="nofollow"&gt;two button submit technique&lt;/a&gt; on your form. Once you've done that, you'll just need to &lt;a href="http://forms.stefcameron.com/2006/06/26/process-all-fields/" rel="nofollow"&gt;iterate through all the fields on your form&lt;/a&gt; and make sure they're filled. My &lt;a href="http://forms.stefcameron.com/2006/08/15/invalid-flashing-fields-20/" rel="nofollow"&gt;Invalid Flashing Fields 2.0&lt;/a&gt; tutorial is a great example of looking at all fields in a form and highlighting (flashing red) the first one found that isn't valid filled.</description>
		<content:encoded><![CDATA[<p>Cindy,</p>
<p>Unfortunately, validations in XFA forms don&#8217;t really work the way you would expect them to. At the moment, you&#8217;re still better-off implementing your own script to validate the fields you care about unless you only care about mandatory fields being empty or filled. If it&#8217;s that simple, then setting a field&#8217;s &#8220;Object palette > Value tab > Type property&#8221; to &#8220;User Entered - Required&#8221; will prevent the form from being submitted if that field is empty. If you want to prevent printing, saving or web service execution if form fields aren&#8217;t filled, then see my article on <a href="http://forms.stefcameron.com/2008/04/13/prevent-printing-pdf-forms-in-acrobat-8/" rel="nofollow">preventing a form from being printed</a>.</p>
<p>If you need to do something more complicated than that, then you&#8217;ll need to implement your own solution. I would start by implementing the <a href="http://forms.stefcameron.com/2006/08/24/complex-validations/" rel="nofollow">two button submit technique</a> on your form. Once you&#8217;ve done that, you&#8217;ll just need to <a href="http://forms.stefcameron.com/2006/06/26/process-all-fields/" rel="nofollow">iterate through all the fields on your form</a> and make sure they&#8217;re filled. My <a href="http://forms.stefcameron.com/2006/08/15/invalid-flashing-fields-20/" rel="nofollow">Invalid Flashing Fields 2.0</a> tutorial is a great example of looking at all fields in a form and highlighting (flashing red) the first one found that isn&#8217;t valid filled.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cindy</title>
		<link>http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-30768</link>
		<dc:creator>Cindy</dc:creator>
		<pubDate>Thu, 09 Oct 2008 20:29:58 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-30768</guid>
		<description>Hi,

Do you know how to validate all the fields in JavaScript when the user clicks the Submit button so that if any required fields are empty, nothing (submission, JavaScript code, execute menu items, etc.) will be executed? I found something about execValidate() but it didn't work for me. It wouldn't do anything. I am using Adobe Acrobat Professional 8.0. Thank you!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Do you know how to validate all the fields in JavaScript when the user clicks the Submit button so that if any required fields are empty, nothing (submission, JavaScript code, execute menu items, etc.) will be executed? I found something about execValidate() but it didn&#8217;t work for me. It wouldn&#8217;t do anything. I am using Adobe Acrobat Professional 8.0. Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-26332</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Fri, 15 Aug 2008 13:32:01 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-26332</guid>
		<description>TJ,

Awesome!</description>
		<content:encoded><![CDATA[<p>TJ,</p>
<p>Awesome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TJ</title>
		<link>http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-26272</link>
		<dc:creator>TJ</dc:creator>
		<pubDate>Thu, 14 Aug 2008 18:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/08/07/what-about-the-other-field/#comment-26272</guid>
		<description>Stefan,

THANK YOU!  I tried your 'sanity check' and that worked fine.  I then tried entering the code via the Script Editor rather than the XML Source and it worked perfectly.  Clearly I must have missed something when entering the code on the XML Source tab.  I appreciate your response!</description>
		<content:encoded><![CDATA[<p>Stefan,</p>
<p>THANK YOU!  I tried your &#8217;sanity check&#8217; and that worked fine.  I then tried entering the code via the Script Editor rather than the XML Source and it worked perfectly.  Clearly I must have missed something when entering the code on the XML Source tab.  I appreciate your response!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
