Article View: adobe.acrobat.sdk
Article #234Field level behavior using Javascript
From: smde
Date: Thu, 19 Mar 2009 19:29
Date: Thu, 19 Mar 2009 19:29
18 lines
1720 bytes
1720 bytes
I am using Live Cycle designer with an XFA form that is reading its data from an XML data file -
This is the best feature in all of Adobe land, etc ....
however....
in the real world - not all XML environments are the same or even sane.
I have a situation where the schema is only being loosely adhered to - mostly in newer instances of the data suppler - while older data retains some legacy processing : like
Not using a unique XML Element to define a separate data segment - but rather embedding important processing data at the value level .
So ,with all that being said, my question is this -
Is there a way to check the contents of a field - determine that I don't want to display ti- or that I do want to display it ???
I don't just want an error message stating that it isn't X, or Y or Z ... , etc.
For instance if I wanted to skip anything that had a null field for a particular field value - .
if (this.rawValue == ""} {"do something : like set to a value that will fail the validate script ... };
If I test it after the bind event - then follw that with a validation script ... etc ....
This is what I am hoping that I can do .
Technical Details
Message-ID:
<59b85a14.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: 10177e,3c72179387dd17a9,start X-Google-Attributes: gid10177e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: smde@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.acrobat.sdk Subject: Field level behavior using Javascript Message-ID: <59b85a14.-1@webcrossing.la2eafNXanI> Date: Thu, 19 Mar 2009 12:29:12 -0700 Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit