<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Presence vs Relevance</title>
	<atom:link href="http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/</link>
	<description>Building intelligent forms using Adobe LiveCycle Designer</description>
	<lastBuildDate>Sun, 21 Mar 2010 20:03:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/comment-page-1/#comment-64190</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Wed, 13 Jan 2010 14:34:15 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/#comment-64190</guid>
		<description>Arwin,

You would do this using the Script Editor by adding an xfa.host.messageBox(&quot;&lt;message&gt;&quot;) statement in the object&#039;s (most likely the print button) PostPrint event. The PostPrint event is fired on all objects (that support it) after printing.</description>
		<content:encoded><![CDATA[<p>Arwin,</p>
<p>You would do this using the Script Editor by adding an xfa.host.messageBox(&#8220;&lt;message>&#8221;) statement in the object&#8217;s (most likely the print button) PostPrint event. The PostPrint event is fired on all objects (that support it) after printing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arwin</title>
		<link>http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/comment-page-1/#comment-64057</link>
		<dc:creator>Arwin</dc:creator>
		<pubDate>Mon, 11 Jan 2010 16:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/#comment-64057</guid>
		<description>Dear Stefan,

I want to display a post print message, explaining what a user should do after printing the form.

How and where within the XML Source should this be done?

Thanks for your help, I appreciate the effort.</description>
		<content:encoded><![CDATA[<p>Dear Stefan,</p>
<p>I want to display a post print message, explaining what a user should do after printing the form.</p>
<p>How and where within the XML Source should this be done?</p>
<p>Thanks for your help, I appreciate the effort.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/comment-page-1/#comment-63756</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Wed, 06 Jan 2010 13:12:09 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/#comment-63756</guid>
		<description>Alvin,

I don&#039;t believe you can achieve this only with the relevant attribute. You&#039;ll need to set the presence to &quot;hidden&quot; on the PrePrint event.</description>
		<content:encoded><![CDATA[<p>Alvin,</p>
<p>I don&#8217;t believe you can achieve this only with the relevant attribute. You&#8217;ll need to set the presence to &#8220;hidden&#8221; on the PrePrint event.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alvin</title>
		<link>http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/comment-page-1/#comment-63294</link>
		<dc:creator>Alvin</dc:creator>
		<pubDate>Wed, 30 Dec 2009 07:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/#comment-63294</guid>
		<description>Hi Stefan,

I had a try on using relevant as opposed to hiding/showing at pre-print and post-print events. However, it appears that fields that was set with relevant=&quot;-print&quot; were &quot;invisible&quot; on print. Is there a way that we could make the fields &quot;hidden&quot; on print rather than having them &quot;invisible&quot; using the relevant property?</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I had a try on using relevant as opposed to hiding/showing at pre-print and post-print events. However, it appears that fields that was set with relevant=&#8221;-print&#8221; were &#8220;invisible&#8221; on print. Is there a way that we could make the fields &#8220;hidden&#8221; on print rather than having them &#8220;invisible&#8221; using the relevant property?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/comment-page-1/#comment-52547</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Wed, 15 Jul 2009 18:30:16 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/#comment-52547</guid>
		<description>David Joycw,

If you put

&lt;pre&gt;&lt;code&gt;xfa.form.MyForm.MyForm.MyFragment.presence=”hidden”&lt;/code&gt;&lt;/pre&gt;

in your fragment and it gets inserted into a document which has a root subform named &quot;form1&quot; instead of &quot;MyForm&quot;, your script will fail because &quot;MyForm&quot; won&#039;t exist, which could explain why the fragment won&#039;t hide itself.

You didn&#039;t explain under what circumstances the fragment would hide itself but let&#039;s say it was during the form&#039;s initialization sequence if a particular field value was not 1. This is what you could put in the fragment&#039;s Initialize event (Initialize event of the subform that is defined as a fragment):

&lt;pre&gt;&lt;code&gt;// JavaScript:
if (theField.rawValue != 1)
    this.presence = &quot;hidden&quot;;&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>David Joycw,</p>
<p>If you put</p>
<pre><code>xfa.form.MyForm.MyForm.MyFragment.presence=”hidden”</code></pre>
<p>in your fragment and it gets inserted into a document which has a root subform named &#8220;form1&#8243; instead of &#8220;MyForm&#8221;, your script will fail because &#8220;MyForm&#8221; won&#8217;t exist, which could explain why the fragment won&#8217;t hide itself.</p>
<p>You didn&#8217;t explain under what circumstances the fragment would hide itself but let&#8217;s say it was during the form&#8217;s initialization sequence if a particular field value was not 1. This is what you could put in the fragment&#8217;s Initialize event (Initialize event of the subform that is defined as a fragment):</p>
<pre><code>// JavaScript:
if (theField.rawValue != 1)
    this.presence = "hidden";</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Joycw</title>
		<link>http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/comment-page-1/#comment-52058</link>
		<dc:creator>David Joycw</dc:creator>
		<pubDate>Wed, 08 Jul 2009 07:37:31 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/#comment-52058</guid>
		<description>Hi Stefan,

Maybe you can help me with a query I have around making fragments hidden. I have a form that includes a fragment. I can make the presence of this fragment hidden by specifying the following JavaScript within my form:
xfa.form.MyForm.MyForm.MyFragment.presence=&quot;hidden&quot;
However, my requirements are for the JavaScript to reside within the fragment. However, when I embed corresponding JavaScript in my fragment the fragment always displays when the form is rendered. Would you have an example of how to achieve this?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>Maybe you can help me with a query I have around making fragments hidden. I have a form that includes a fragment. I can make the presence of this fragment hidden by specifying the following JavaScript within my form:<br />
xfa.form.MyForm.MyForm.MyFragment.presence=&#8221;hidden&#8221;<br />
However, my requirements are for the JavaScript to reside within the fragment. However, when I embed corresponding JavaScript in my fragment the fragment always displays when the form is rendered. Would you have an example of how to achieve this?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicole</title>
		<link>http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/comment-page-1/#comment-33634</link>
		<dc:creator>Nicole</dc:creator>
		<pubDate>Thu, 20 Nov 2008 04:45:04 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/#comment-33634</guid>
		<description>Stefan,

Please disregard my last post.  I changed the form to dynamic rather than static and that took care of the problem.

Nicole</description>
		<content:encoded><![CDATA[<p>Stefan,</p>
<p>Please disregard my last post.  I changed the form to dynamic rather than static and that took care of the problem.</p>
<p>Nicole</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicole</title>
		<link>http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/comment-page-1/#comment-33630</link>
		<dc:creator>Nicole</dc:creator>
		<pubDate>Thu, 20 Nov 2008 04:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/#comment-33630</guid>
		<description>Stefan,

I&#039;m working a form where I have a drop-down list at the top of the form where the users select their name and other fields are automatically filled in.  This part works just fine.  However, I am trying to make the drop-down list box disappear after the selection has been made and the user has selected &quot;yes&quot; from the confirmation box.  The confirmation box works, too.  However, the if statement that I put in after the confirmation box script only works in part.  It is supposed to make the entire drop-down list box disappear if the user chooses &quot;yes&quot; that they have made the correct choice in names.  The problem is this:  the content area appears to disappear, but the caption stays behind.  No matter what I try, it will not disappear with the content area.  This code has worked on another form, but will not work on this one.  

 topmostSubform.Page1.officerSetupBox::exit - (JavaScript, client)
//Message box asking for confirmation that the intended choice was selected. 1=icon listed on message box, 2=yes and no button displayed.  
//Answer selected put into variable called confirm
var confirm = xfa.host.messageBox(&quot;Is this the officer you wish to select?&quot;, &quot;Confirmation&quot;, 1, 2)
//If the answer is yes make box disappear; 4=yes; 
if (confirm==4)
{officerSetupBox.presence=&quot;invisible&quot;;}


What am I missing here and why would this work in one form but not another?   I&#039;ve come across that several times.

Any help would be appreciated.  I&#039;m not finding any help in any of the resources I have looked at.

Nicole</description>
		<content:encoded><![CDATA[<p>Stefan,</p>
<p>I&#8217;m working a form where I have a drop-down list at the top of the form where the users select their name and other fields are automatically filled in.  This part works just fine.  However, I am trying to make the drop-down list box disappear after the selection has been made and the user has selected &#8220;yes&#8221; from the confirmation box.  The confirmation box works, too.  However, the if statement that I put in after the confirmation box script only works in part.  It is supposed to make the entire drop-down list box disappear if the user chooses &#8220;yes&#8221; that they have made the correct choice in names.  The problem is this:  the content area appears to disappear, but the caption stays behind.  No matter what I try, it will not disappear with the content area.  This code has worked on another form, but will not work on this one.  </p>
<p> topmostSubform.Page1.officerSetupBox::exit &#8211; (JavaScript, client)<br />
//Message box asking for confirmation that the intended choice was selected. 1=icon listed on message box, 2=yes and no button displayed.<br />
//Answer selected put into variable called confirm<br />
var confirm = xfa.host.messageBox(&#8220;Is this the officer you wish to select?&#8221;, &#8220;Confirmation&#8221;, 1, 2)<br />
//If the answer is yes make box disappear; 4=yes;<br />
if (confirm==4)<br />
{officerSetupBox.presence=&#8221;invisible&#8221;;}</p>
<p>What am I missing here and why would this work in one form but not another?   I&#8217;ve come across that several times.</p>
<p>Any help would be appreciated.  I&#8217;m not finding any help in any of the resources I have looked at.</p>
<p>Nicole</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/comment-page-1/#comment-20845</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sun, 08 Jun 2008 18:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/#comment-20845</guid>
		<description>Rahul,

What&#039;s the script you&#039;re using in the button&#039;s Click event to update the values of the hidden text fields? If your script is written in JavaScript, have you looked at the &lt;a href=&quot;http://forms.stefcameron.com/2006/05/05/debugging-scripts/&quot; rel=&quot;nofollow&quot;&gt;JavaScript Console in Acrobat&lt;/a&gt; to see if there are any errors?</description>
		<content:encoded><![CDATA[<p>Rahul,</p>
<p>What&#8217;s the script you&#8217;re using in the button&#8217;s Click event to update the values of the hidden text fields? If your script is written in JavaScript, have you looked at the <a href="http://forms.stefcameron.com/2006/05/05/debugging-scripts/" rel="nofollow">JavaScript Console in Acrobat</a> to see if there are any errors?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/comment-page-1/#comment-20609</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Thu, 05 Jun 2008 13:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2007/09/27/presence-vs-relevance/#comment-20609</guid>
		<description>Hi Stefan,

I am getting this weird problem in LiveCycle (not that it operates smoothly on other occasions). I have a few text fields on the form which are hidden (there to hold user entered options across various sessions). There is a button whose click event updates the values of these fields. The problem is, even though in the click event, it shows the values (rawValue) of the text fields as being updated, these are not updated on the form itself. If I use app.alert() in click event to see values, these are shown as updated values but the values in the fields donâ€™t change (I have checked this by making the fields visible so that I can spot the change). These remain null forever.

If you can help, I will greatly appreciate that. I have checked Adobe Forums to see if there is a related post but found none. The nearest I can find is yours and I am encouraged to see that you actually reply to the posts; on many sites, replies are found rarely (if ever). 

Thank you in advance.

Rahul.</description>
		<content:encoded><![CDATA[<p>Hi Stefan,</p>
<p>I am getting this weird problem in LiveCycle (not that it operates smoothly on other occasions). I have a few text fields on the form which are hidden (there to hold user entered options across various sessions). There is a button whose click event updates the values of these fields. The problem is, even though in the click event, it shows the values (rawValue) of the text fields as being updated, these are not updated on the form itself. If I use app.alert() in click event to see values, these are shown as updated values but the values in the fields donâ€™t change (I have checked this by making the fields visible so that I can spot the change). These remain null forever.</p>
<p>If you can help, I will greatly appreciate that. I have checked Adobe Forums to see if there is a related post but found none. The nearest I can find is yours and I am encouraged to see that you actually reply to the posts; on many sites, replies are found rarely (if ever). </p>
<p>Thank you in advance.</p>
<p>Rahul.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
