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

Archyron
Archyron
Offline
  • The key to this is to create an AcroForm PDF template to store your data. Then you can open that file and write in the data.var doc = event.target;// This opens the AcroForm. It must be contained in the same directory as the XFA form.var reportDoc = app.openDoc({ cPath: "Template.pdf", oDoc: doc, bH...

    Type

    Questions

    Views

    1.7K

    Like

    1

    Replies

    0
  • If you're trying to enter a date I don't see why you would want to use a text field over a date field. However, if you absolutely need a text field you could use regex in the validate event like so:if (!(this.isNull || this.rawValue.length == 0)) { //Test for MM/DD/YYYY format var pattern = new RegE...

    Type

    Questions

    Views

    2.9K

    Likes

    0

    Replies

    0
  • Use the validation pattern: date{MM/DD/YYYY}

    Type

    Questions

    Views

    2.9K

    Likes

    0

    Replies

    0
  • In case anyone has the same problem here is the solution. Used the content stream versus the Doc object.//Attach documentsif (doc.dataObjects) { doc.dataObjects.forEach(function(attachment, i, a) { var contentStream = doc.getDataObjectContents(attachment.name); reportDoc.createDataObject(attachment....

    Type

    Questions

    Views

    2.0K

    Likes

    0

    Replies

    0
  • No you should be fine there. I believe I misinterpreted your intent from your code... This is the code you want to use: if (this.rawValue == 1) { this.resolveNode("RAConcur.Comments").presence="visible";}Just make sure you place the code into the change event of your radio button and that the value ...

    Type

    Questions

    Views

    2.6K

    Like

    1

    Replies

    0
  • You are missing your semicolons.var choice = this.resolveNode("RAConcur.Comments").rawValue;if (choice == 1) this.presence = "visible";Livecycle is a poor place to learn proper javascript syntax as it is not a proper editor. Try some quick online courses to get some of the basics down and I can assu...

    Type

    Questions

    Views

    2.6K

    Likes

    0

    Replies

    0
  • I have a database connected XFA form that opens and fills out a separate 'report' form before sending it to the client via email. The issue i'm having is trying to transfer over all PDF attachments to the report form so that they get sent along with the report form.var doc = event.target;var reportD...

    Type

    Questions

    Views

    2.2K

    Likes

    0

    Replies

    1
Top badges earned by Archyron
Customize the badges you want to showcase on your profile