since ‎12-07-2018
‎10-12-2019
jb207
Level 1
Re: Unable to run code in XFA form
Avatar

jb207

jb207
- Adobe LiveCycle
HiThanks for reply.In my file, I want to keep file name and value entered in "AttachName" is same.I want that the value entered in "AttachName" will show in the drop down list. For example, if I want to add two files (text1 and text2), I'll write "text1" in the "AttachName" and then click "Attach Button". Same will be done for "text2" file.When I want to view "text1" file, I'll select "text1" drop down list and click "ExportButton" to view the file and same will be for "text2" file and so on.Reg...

Views

696

Likes

0

Replies

0
Re: Unable to run code in XFA form
Avatar

jb207

jb207
- Adobe LiveCycle
HiThanks for the reply.I insert the code in click event of import and export button. When I click import button, file is attached but it does not insert in the dropdown list. What I was trying that user will select file from dropdown list and then click to export button to see the file. When I click export button in acrobat pro dc I am getting below error:Here is the link of my file-https://drive.google.com/file/d/13YWEe5k_OuMXRkVU5RxH-LuOzuo-kKjI/view?usp=sharing and link of acroform file of pd...

Views

717

Likes

0

Replies

0
Unable to run code in XFA form
Avatar

jb207

jb207
- Adobe LiveCycle
Hi,I've found an example in pdfscripting.com for importing & exporting attachment. I want to add this code in my XFA form created in livecycle designer ES4 for the same purpose. As I am newbie in javascript coding (this is my first form in livecycle designer) I don't know how to convert below code for livecycle. Any help would be greatly appreciated.//code for import attachment button// Get Import Namevar cName = this.getField("AttachName").value;// Test for empty valueif(!/^\s*$/.test(cName)){/...

Views

1.7K

Likes

0

Replies

7
Attachment removal issue
Avatar

jb207

jb207
- Adobe LiveCycle
Hi I am trying to create listbox that will be used to add, open and remove attachment. This form has 3 buttons for 3 action. I have having difficulty with the ''Remove" button.On the click event for the remove button, I have written some simple javascript code (help taken from adobe forum) to delete the selected index item that should read the selected item from the listbox and then delete it. This part is okay.But I want to add some code in the "remove" button so that whoever add the attachment...

Views

399

Likes

0

Replies

0
Likes given to