1 Reply Latest reply on Sep 8, 2016 6:39 AM by Laubender

    Control form fields only allow numbers

    Level 1

      Is  this possible to control the form fields via scripting. I need to allow only number in text boxes

        • 1. Re: Control form fields only allow numbers
          Laubender Adobe Community Professional & MVP

          Form Fields for PDFs?
          I think, you can do this kind of type checks with Acrobat Pro and JavaScript for Acrobat.
          Not with InDesign as far as I know.

           

          Maybe it's possible to write Encapsulated PostScript (EPS) code with pdfMarks annotations included that build a form field widget for PDF. And with that widget one could include perhaps a JavaScript statement for Acrobat for a number-only check. But that would mean, that the PDF has to be converted out of a PostScript file through Acrobat Distiller. A PDF-Export would not create a form field out of a pdfMarks statement.

           

          Though, an ExtendScript script could create the EPS code, write it to a file with suffix *.eps and place the EPS on an InDesign page.

           

          About pdfMarks see:

          http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdfmark_reference.pdf

           

          Regards,
          Uwe