Skip navigation
sarah-sego
Currently Being Moderated

Create a custom action to a form field

Apr 26, 2013 12:56 PM

Tags: #acrobat #form #cs6 #scritping

Hello,

I am looking to try and create a custom action to a form field in indesign. I would like for this action to transfer a piece of syntax to acrobat pdf. Then once in acrobat activate the form fields. The form field will have this syntax built in and then. This pdf will then be uploaded to website that will allow for customization of the pdf, i.e name, phone number etc and also the option to add an image.

 

I am not sure if this is even possible, but thought i would put it out there

 

thanks so much -

sarah sego

 
Replies
  • Currently Being Moderated
    Apr 26, 2013 5:28 PM   in reply to sarah-sego

    This MAY be possible but it would have to be programmed in JavaScript in Acrobat. It can't be done in InDesign.

     

    You would have to ask in the Acrobat Forms forum.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 27, 2013 7:26 AM   in reply to sarah-sego

    Off the top of my head:

    In InDesign you can get/set the name of a button...

    1.jpg

     

    ...and export your data to a text file where each record (line) contains two/three/etc. fields: button name, trigger and the code for your custom action.

    2.jpg

    In Acrobat, you can read the data from the file converting them to array in which every element is two/three/etc. elements array: button name, trigger and the code. Then you can loop through each element getting buttons with getField method...

    3.jpg

    ...end setting the action, like so:

    4.jpg

    The button with new action attached:

    5.jpg

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points