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
Community profile Archyron Level 2
Job title here
Location here
7 BADGES
Level 2

Level 2

Learn more
Joined the community 14-10-2016 11:24:36 AM
Offline
Top badges earned by Archyron
Customize the badges you want to showcase on your profile
Re: Exporting Form Data Into Separate PDF Document
Avatar
Give Back 5
Level 2
Archyron
Level 2

Likes

2 likes

Total Posts

7 posts

Correct reply

2 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 1
Give Back
Validate 1
View profile
Archyron
- Adobe LiveCycle
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, bHidden: false});//Fill in the field valuesreportDoc.getField("fieldName").value = "formData";

Views

1.6K

Like

1

Replies

0
Re: date format as MM/DD/YYYY?
Avatar
Give Back 5
Level 2
Archyron
Level 2

Likes

2 likes

Total Posts

7 posts

Correct reply

2 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 1
Give Back
Validate 1
View profile
Archyron
- Adobe LiveCycle
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 RegExp("^(0[1-9]|1[0-2])\/(0[1-9]|1\d|2\d|3[01])\/\d{4}$","g"); var isMatch = pattern.test(this.rawValue); if(!isMatch) xfa.host.messageBox("The date you entered is in an incorrect format", "Error");}//Di...

Views

2.6K

Likes

0

Replies

0
Re: date format as MM/DD/YYYY?
Avatar
Give Back 5
Level 2
Archyron
Level 2

Likes

2 likes

Total Posts

7 posts

Correct reply

2 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 1
Give Back
Validate 1
View profile
Archyron
- Adobe LiveCycle
Use the validation pattern: date{MM/DD/YYYY}

Views

2.6K

Likes

0

Replies

0
Re: Transferring Attachments
Avatar
Give Back 5
Level 2
Archyron
Level 2

Likes

2 likes

Total Posts

7 posts

Correct reply

2 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 1
Give Back
Validate 1
View profile
Archyron
- Adobe LiveCycle
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.name, "Temp Data."); reportDoc.setDataObjectContents(attachment.name, contentStream); doc.removeDataObject(attachment.name); });}

Views

1.9K

Likes

0

Replies

0
Re: Displaying a hidden field, once it has data.
Avatar
Give Back 5
Level 2
Archyron
Level 2

Likes

2 likes

Total Posts

7 posts

Correct reply

2 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 1
Give Back
Validate 1
View profile
Archyron
- Adobe LiveCycle
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 of your radio button actually does evaluate to 1.

Views

2.0K

Like

1

Replies

0
Re: Displaying a hidden field, once it has data.
Avatar
Give Back 5
Level 2
Archyron
Level 2

Likes

2 likes

Total Posts

7 posts

Correct reply

2 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 1
Give Back
Validate 1
View profile
Archyron
- Adobe LiveCycle
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 assure you'll have a much better experience.

Views

2.0K

Likes

0

Replies

0
Transferring Attachments
Avatar
Give Back 5
Level 2
Archyron
Level 2

Likes

2 likes

Total Posts

7 posts

Correct reply

2 solutions
Top badges earned
Give Back 5
Give Back 3
Ignite 1
Give Back
Validate 1
View profile
Archyron
- Adobe LiveCycle
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 reportDoc = null;var attachment = null;var formData = dataBridge.getData();//Open the report filereportDoc = app.openDoc({ cPath: "Design Request Report.pdf", oDoc: doc, bHidden: true});//Attach documentsif ...

Views

2.1K

Likes

0

Replies

1
Likes given to
Likes from