<?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: Auto-Identify Mandatory Fields</title>
	<atom:link href="http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/feed/" rel="self" type="application/rss+xml" />
	<link>http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/</link>
	<description>Building intelligent forms using Adobe LiveCycle Designer</description>
	<lastBuildDate>Fri, 12 Mar 2010 02:03:05 +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/2009/03/16/auto-identify-mandatory-fields/comment-page-1/#comment-56578</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Mon, 28 Sep 2009 19:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/#comment-56578</guid>
		<description>Holander,

Wow, that&#039;s awesome! I&#039;m glad you&#039;re finding it useful. :)</description>
		<content:encoded><![CDATA[<p>Holander,</p>
<p>Wow, that&#8217;s awesome! I&#8217;m glad you&#8217;re finding it useful. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Holander</title>
		<link>http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/comment-page-1/#comment-56576</link>
		<dc:creator>Holander</dc:creator>
		<pubDate>Mon, 28 Sep 2009 19:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/#comment-56576</guid>
		<description>Thank you for the amazing form to toggle mandatory fields.
I started following your blog for last 2 months and you dont believe, I read all of your posts from archives and checked your sample forms.</description>
		<content:encoded><![CDATA[<p>Thank you for the amazing form to toggle mandatory fields.<br />
I started following your blog for last 2 months and you dont believe, I read all of your posts from archives and checked your sample forms.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/comment-page-1/#comment-56510</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Sun, 27 Sep 2009 14:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/#comment-56510</guid>
		<description>Uoi,

That IF condition tests to see if the formObj object is in the Form DOM since the solution, as a whole, deals with objects from both the Form DOM and Template DOM. In this particular case, we want to make sure we&#039;re dealing with an object in the Form DOM. If the object was in the Template DOM, its SOM expression would start with &quot;xfa[0].template[0]&quot; instead.</description>
		<content:encoded><![CDATA[<p>Uoi,</p>
<p>That IF condition tests to see if the formObj object is in the Form DOM since the solution, as a whole, deals with objects from both the Form DOM and Template DOM. In this particular case, we want to make sure we&#8217;re dealing with an object in the Form DOM. If the object was in the Template DOM, its SOM expression would start with &#8220;xfa[0].template[0]&#8221; instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uoi</title>
		<link>http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/comment-page-1/#comment-56240</link>
		<dc:creator>Uoi</dc:creator>
		<pubDate>Wed, 23 Sep 2009 20:14:36 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/#comment-56240</guid>
		<description>I could not understand the necessity of this coding for mandatory fields form:

if (formObj.somExpression.indexOf(”xfa[0].form[0]“) != 0)

What exactly we are trying to find here on index? I checked the som expression and it returns xfa[0].form[0]. But I could not get why we used this if condition here.</description>
		<content:encoded><![CDATA[<p>I could not understand the necessity of this coding for mandatory fields form:</p>
<p>if (formObj.somExpression.indexOf(”xfa[0].form[0]“) != 0)</p>
<p>What exactly we are trying to find here on index? I checked the som expression and it returns xfa[0].form[0]. But I could not get why we used this if condition here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hamlo</title>
		<link>http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/comment-page-1/#comment-56101</link>
		<dc:creator>Hamlo</dc:creator>
		<pubDate>Tue, 22 Sep 2009 21:57:26 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/#comment-56101</guid>
		<description>The Form DOM is very sparse. In order to get the rich text captions for fields, we need to go to the Template DOM and find the pertaining field there in order to get its caption’s XHTML markup. Once that is found, we add/remove the asterisk and set the new value for the caption into the Form DOM’s version of the field, overriding the original definition and producing the new caption that the user sees.</description>
		<content:encoded><![CDATA[<p>The Form DOM is very sparse. In order to get the rich text captions for fields, we need to go to the Template DOM and find the pertaining field there in order to get its caption’s XHTML markup. Once that is found, we add/remove the asterisk and set the new value for the caption into the Form DOM’s version of the field, overriding the original definition and producing the new caption that the user sees.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hotingo</title>
		<link>http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/comment-page-1/#comment-56100</link>
		<dc:creator>Hotingo</dc:creator>
		<pubDate>Tue, 22 Sep 2009 21:53:01 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/#comment-56100</guid>
		<description>I tried to dig more into form DOM and Data DOM like how actually the data is getting filled in the form DOM. I created a interactive student application form in form designer. The form is working fine and saved a PDF copy of it on my desktop. Now, I entered a student details into this PDF, and saved it. When I open the copy again, I can see my previously entered values in the PDF.</description>
		<content:encoded><![CDATA[<p>I tried to dig more into form DOM and Data DOM like how actually the data is getting filled in the form DOM. I created a interactive student application form in form designer. The form is working fine and saved a PDF copy of it on my desktop. Now, I entered a student details into this PDF, and saved it. When I open the copy again, I can see my previously entered values in the PDF.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ajax2</title>
		<link>http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/comment-page-1/#comment-53259</link>
		<dc:creator>ajax2</dc:creator>
		<pubDate>Tue, 28 Jul 2009 22:33:52 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/#comment-53259</guid>
		<description>Hi Stefan,
Thanks for the reply. I’m amazed at you patience in replying to the comments. It was really helpful and now I got the actual funda behind the script and I could able to understand it easily.</description>
		<content:encoded><![CDATA[<p>Hi Stefan,<br />
Thanks for the reply. I’m amazed at you patience in replying to the comments. It was really helpful and now I got the actual funda behind the script and I could able to understand it easily.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/comment-page-1/#comment-52676</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Fri, 17 Jul 2009 20:14:06 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/#comment-52676</guid>
		<description>krishna,

You&#039;re welcome.

The reason why you don&#039;t see the saved data when you open the PDF form in Designer again is because XFA forms are stored inside PDF files. The PDF becomes a container for the form. When you open the form in Designer, you see the template &lt;i&gt;design&lt;/i&gt;, not the actual template &lt;i&gt;rendering&lt;/i&gt;.

When you open the PDF in Acrobat, you see the rendering (runtime) and you&#039;ll also see any data that was previously entered and saved into that version of the PDF file. The data is stored in the form&#039;s &lt;data&gt; packet however, since this is runtime information only, you don&#039;t see it at design time in Designer.

If you really want to see the Template, Form and Data DOMs in action, check-out &lt;a href=&quot;http://blogs.adobe.com/formfeed/2009/05/debug_merge_and_layout.html&quot; rel=&quot;nofollow&quot;&gt;this article&lt;/a&gt; by my colleague John Brinkman.</description>
		<content:encoded><![CDATA[<p>krishna,</p>
<p>You&#8217;re welcome.</p>
<p>The reason why you don&#8217;t see the saved data when you open the PDF form in Designer again is because XFA forms are stored inside PDF files. The PDF becomes a container for the form. When you open the form in Designer, you see the template <i>design</i>, not the actual template <i>rendering</i>.</p>
<p>When you open the PDF in Acrobat, you see the rendering (runtime) and you&#8217;ll also see any data that was previously entered and saved into that version of the PDF file. The data is stored in the form&#8217;s <data> packet however, since this is runtime information only, you don&#8217;t see it at design time in Designer.</p>
<p>If you really want to see the Template, Form and Data DOMs in action, check-out <a href="http://blogs.adobe.com/formfeed/2009/05/debug_merge_and_layout.html" rel="nofollow">this article</a> by my colleague John Brinkman.</data></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: krishna</title>
		<link>http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/comment-page-1/#comment-52656</link>
		<dc:creator>krishna</dc:creator>
		<pubDate>Fri, 17 Jul 2009 14:28:15 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/#comment-52656</guid>
		<description>Hi Stefan,
  Thanks for the reply. I&#039;m amazed at you patience in replying to the comments. It was really helpful and now I got the actual funda behind the script and I could able to understand it easily. 
 I tried to dig more into form DOM and Data DOM like how actually the data is getting filled in the form DOM. I created a interactive student application form in form designer. The form is working fine and saved a PDF copy of it on my desktop. Now, I entered a student details into this PDF, and saved it. When I open the copy again, I can see my previously entered values in the PDF. 
   I was curious to know how the data we entered in the form got stored internally in this PDF. I tried to open this saved copy using designer to check and see these entered values in the xml source of the form. But none of the values (student details ) got stored anywhere.
   Why is this like that. Where did all the entered values go when I open it in designer. Can&#039;t we see the actual source of form DOM that happens in runtime?
   I think there should be some confusion in my understanding of these things. 

Regards,
Krishna</description>
		<content:encoded><![CDATA[<p>Hi Stefan,<br />
  Thanks for the reply. I&#8217;m amazed at you patience in replying to the comments. It was really helpful and now I got the actual funda behind the script and I could able to understand it easily.<br />
 I tried to dig more into form DOM and Data DOM like how actually the data is getting filled in the form DOM. I created a interactive student application form in form designer. The form is working fine and saved a PDF copy of it on my desktop. Now, I entered a student details into this PDF, and saved it. When I open the copy again, I can see my previously entered values in the PDF.<br />
   I was curious to know how the data we entered in the form got stored internally in this PDF. I tried to open this saved copy using designer to check and see these entered values in the xml source of the form. But none of the values (student details ) got stored anywhere.<br />
   Why is this like that. Where did all the entered values go when I open it in designer. Can&#8217;t we see the actual source of form DOM that happens in runtime?<br />
   I think there should be some confusion in my understanding of these things. </p>
<p>Regards,<br />
Krishna</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Cameron</title>
		<link>http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/comment-page-1/#comment-52548</link>
		<dc:creator>Stefan Cameron</dc:creator>
		<pubDate>Wed, 15 Jul 2009 18:42:27 +0000</pubDate>
		<guid isPermaLink="false">http://forms.stefcameron.com/2009/03/16/auto-identify-mandatory-fields/#comment-52548</guid>
		<description>krishna,

Wow, I&#039;m impressed!

Your question is very interesting. The reason behind the check for &quot;xfa[0].form[0]&quot; is that the function expects the formObj variable to be a form object located within the Form DOM as opposed to the Template DOM.

In an XFA form, there are many DOMs (Document Object Models). The 3 most important are the Template, Form and Data DOMs. The Template DOM defines the structure of the form and is defined at design time. The Form DOM is a runtime representation of the Template DOM (with overrides where appropriate depending on scripts, user interaction and data). Finally, the Data DOM is what contains the data (coming from XML, a database, a web service, etc.) that is merged with the Template DOM in order to produce the Form DOM.

The Form DOM is very sparse. In order to get the rich text captions for fields, we need to go to the Template DOM and find the pertaining field there in order to get its caption&#039;s XHTML markup. Once that is found, we add/remove the asterisk and set the new value for the caption into the Form DOM&#039;s version of the field, overriding the original definition and producing the new caption that the user sees.

Some of the methods in the mandatoryLib script object expect that a variable is in the Form DOM rather than the Template DOM. Looking at its SOM expression for &quot;xfa[0].form[0]&quot; as opposed to &quot;xfa[0].template[0]&quot; is one way of determining that we have what we&#039;re expecting.</description>
		<content:encoded><![CDATA[<p>krishna,</p>
<p>Wow, I&#8217;m impressed!</p>
<p>Your question is very interesting. The reason behind the check for &#8220;xfa[0].form[0]&#8221; is that the function expects the formObj variable to be a form object located within the Form DOM as opposed to the Template DOM.</p>
<p>In an XFA form, there are many DOMs (Document Object Models). The 3 most important are the Template, Form and Data DOMs. The Template DOM defines the structure of the form and is defined at design time. The Form DOM is a runtime representation of the Template DOM (with overrides where appropriate depending on scripts, user interaction and data). Finally, the Data DOM is what contains the data (coming from XML, a database, a web service, etc.) that is merged with the Template DOM in order to produce the Form DOM.</p>
<p>The Form DOM is very sparse. In order to get the rich text captions for fields, we need to go to the Template DOM and find the pertaining field there in order to get its caption&#8217;s XHTML markup. Once that is found, we add/remove the asterisk and set the new value for the caption into the Form DOM&#8217;s version of the field, overriding the original definition and producing the new caption that the user sees.</p>
<p>Some of the methods in the mandatoryLib script object expect that a variable is in the Form DOM rather than the Template DOM. Looking at its SOM expression for &#8220;xfa[0].form[0]&#8221; as opposed to &#8220;xfa[0].template[0]&#8221; is one way of determining that we have what we&#8217;re expecting.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
