Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Adobe Technologies
  4. Javascript code in PDF form fields

Javascript code in PDF form fields

Scheduled Pinned Locked Moved Adobe Technologies
questionjavascript
4 Posts 3 Posters 22 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 10935107
    wrote on last edited by
    #1

    Hello from Italy! is possible to know if in a field of a PDF form is there some javascript code ready to work? I'm writing a tool that use SetAction method to insert javascript code in some fields, but this will be destructive for the javascript code evenctually present how can I check if the field I'm modifyng has javascript? thnk you very much and sorry for bad english

    J 1 Reply Last reply
    0
    • U User 10935107

      Hello from Italy! is possible to know if in a field of a PDF form is there some javascript code ready to work? I'm writing a tool that use SetAction method to insert javascript code in some fields, but this will be destructive for the javascript code evenctually present how can I check if the field I'm modifyng has javascript? thnk you very much and sorry for bad english

      J Offline
      J Offline
      Jyoshna Behera
      wrote on last edited by
      #2

      Hi Member 10969291, You can check the javascript codes used for the field with these simple steps : 1. Open the pdf in Adobe Acrobat Pro (IX or higher) . 2. Right click and find the Properties for the field. 3. Navigate to the Actions tab and you can see the javascript codes added for any events occurring in the field. 4. You can find the validation script written for the field in the Validate tab under custom validation script. 5. The calculation script can be found under the Calculate tab under custom calculation script. Hope this helps. :)

      U M 2 Replies Last reply
      0
      • J Jyoshna Behera

        Hi Member 10969291, You can check the javascript codes used for the field with these simple steps : 1. Open the pdf in Adobe Acrobat Pro (IX or higher) . 2. Right click and find the Properties for the field. 3. Navigate to the Actions tab and you can see the javascript codes added for any events occurring in the field. 4. You can find the validation script written for the field in the Validate tab under custom validation script. 5. The calculation script can be found under the Calculate tab under custom calculation script. Hope this helps. :)

        U Offline
        U Offline
        User 10935107
        wrote on last edited by
        #3

        thank you Jyoshna but I need to know if a form field has javascript programmatically I need to insert javascript code into form fields but this operation will destroy any code already present: for this reason I need to check if a form field has javascript code BEFORE using the "SetAction" method... sorry for bad english

        1 Reply Last reply
        0
        • J Jyoshna Behera

          Hi Member 10969291, You can check the javascript codes used for the field with these simple steps : 1. Open the pdf in Adobe Acrobat Pro (IX or higher) . 2. Right click and find the Properties for the field. 3. Navigate to the Actions tab and you can see the javascript codes added for any events occurring in the field. 4. You can find the validation script written for the field in the Validate tab under custom validation script. 5. The calculation script can be found under the Calculate tab under custom calculation script. Hope this helps. :)

          M Offline
          M Offline
          Margarita01
          wrote on last edited by
          #4

          To perform just about any kind of interactive, sophisticated, and/or useful feature in a PDF form or workflow solution requires scripting. How many times have your heard "You need a script for that".

          Start your day with a smile, Portland SEO experts are your partner to have a wonderful day!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups