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
  • 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 ...

    Type

    Questions

    Views

    438

    Likes

    0

    Replies

    0
  • 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

    240

    Likes

    0

    Replies

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

    Type

    Questions

    Views

    230

    Likes

    0

    Replies

    0
  • 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(/[\"\\[:;<?!~]/g, "");Note that most often xfa.event.change is a single character when the user is typing, but could be ...

    Type

    Questions

    Views

    395

    Likes

    0

    Replies

    0
  • 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

    998

    Likes

    0

    Replies

    0
  • 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 tha...

    Type

    Questions

    Views

    1.1K

    Likes

    0

    Replies

    0
  • 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

    202

    Likes

    0

    Replies

    0
  • If the image was added in Designer, the image name gets saved under the <desc> 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 d...

    Type

    Questions

    Views

    256

    Likes

    0

    Replies

    0
  • 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

    729

    Likes

    0

    Replies

    0
  • 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

    640

    Likes

    0

    Replies

    0
Top badges earned by JohnBrinkman
Customize the badges you want to showcase on your profile