Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

JohnBrinkman
JohnBrinkman
Offline
  • 24-06-2010
    The xfa.log object is still around -- but it exists only when executing in the context of the server. In acrobat if you check typeof xfa.log it will tell you "undefined".Server-scripts will run in Designer under certain circumstances. It depends on the kind of file you're saving:- save-as XDP: no sc...

    Type

    Questions

    Views

    372

    Likes

    0

    Replies

    0
  • 20-10-2009
    When you define your form using a schema or sample XML, you get the opportunity to "Transform outgoing data" by specifying an XSLT script.When you provide a script here, it will execute against your data before it is submitted.Your other option is to bypass the submit processing and use FormCalcs pu...

    Type

    Questions

    Views

    210

    Likes

    0

    Replies

    0
  • 20-10-2009
    You can have an entry in the list to represent no value ("").Then you can add an exit script that looks like:if (this.rawValue === "") { this.rawValue = null;}This way, when the user selects the "" entry, the value will be set to null when they exit the field. John

    Type

    Questions

    Views

    202

    Likes

    0

    Replies

    0
  • 29-09-2009
    You can restrict user input by modifying xfa.event.change during the change event.To remove the characters you mention, try this script:xfa.event.change = xfa.event.change.replace(/[\"\\[:;

    Type

    Questions

    Views

    358

    Likes

    0

    Replies

    0
  • 29-09-2009
    A couple of late comments here:If you want to see if a date field matches a pattern you can:a) Add a display pattern for the fieldb) The field will be valid if:field.rawValue != field.formattedValueThe reason this works is because if a field cannot be formatted with a picture clause, the formatted v...

    Type

    Questions

    Views

    954

    Likes

    0

    Replies

    0
  • 29-09-2009
    Locale definitions are also stored inside the XFA definition. You can see them if you go into XML Source view and search for: "localeSet".The localeset will embed the ambient locale of the form designer's system, and will also embed all locales referenced by the form.So if you want to guarantee that...

    Type

    Questions

    Views

    1.0K

    Likes

    0

    Replies

    0
  • 29-09-2009
    You cannot have linked images in a PDF (well, technically, the PDF spec allows it, but Adobe products won't generate this variation of PDF).Among the reasons:a) With a linked image the document is no longer portable (the 'P' in PDF)b) With a linked image, you cannot reliably sign a PDF, since the re...

    Type

    Questions

    Views

    180

    Likes

    0

    Replies

    0
  • 29-09-2009
    If the image was added in Designer, the image name gets saved under the element.The file name can then be displayed with the expression:ImageField1.desc.embeddedHref.valueAs Paul says, if the image field were updated in Acrobat, the desc element does not get updated.Updating the image field desc el...

    Type

    Questions

    Views

    229

    Likes

    0

    Replies

    0
  • 25-02-2009
    If you want to swallow all keystrokes after you've reached 10 characters, then clear the xfa.event.change property:if (xfa.event.newText.length > 10) xfa.event.change = "";John Brinkmanhttp://blogs.adobe.com/formfeed

    Type

    Discussions

    Views

    695

    Likes

    0

    Replies

    0
  • 25-02-2009
    You could use a text picture instead of a numeric picture:text{9999} will enforce that all 4 digits are supplied.(Designer will give you a warning if it is a numeric field, but you can ignore the warning) John Brinkman http://blogs.adobe.com/formfeed

    Type

    Discussions

    Views

    586

    Likes

    0

    Replies

    0