Copy link to clipboard
Copied
Hi folks
I am currently researching about the scripting capabilities of InDesign. Actually I want to know whether I can run a script in InDesign to do a feature that is not supported by InDesign. For example I want to add character limit and format to a form field created in InDesign. But it is not possible in InDesign. Is there any way I can do it using scripts?
Copy link to clipboard
Copied
Generally scripting is used for automation of InDesign. Whether something can be done or not can be answered by looking at the InDesign DOM API and figuring out what is possible or not via scripting. For that start at the link given below
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Application.html
Now if you find that scripting is lacking for your task then the final tool you can explore is creating C++ plugin for InDesign. This can do almost anything within the app. The only need is that it should have been exposed by the Adobe team for the 3rd party developers.
-Manan
Copy link to clipboard
Copied
Thankyou for your reply
Copy link to clipboard
Copied
Your example refers to the functionality of the interactive PDF.
Can be done by injecting JavaScript code into the exported PDF - but needs to be done in Acrobat - AFTER exporting PDF.
Copy link to clipboard
Copied
Actually I wanted to do it within InDesign itself. Is there any way for that?
Copy link to clipboard
Copied
Actually I wanted to do it within InDesign itself. Is there any way for that?
By @Praveena38872767xscr
No.
Copy link to clipboard
Copied
Thankyou for your reply
Copy link to clipboard
Copied
Is it possible to give formats and character limits for form field in acrobat using scripts by using the name of the text field as the base?
Copy link to clipboard
Copied
There's FormMagic plug-in that can do more than what's built into InDesign. I don't know if it can do exactly what you want:
Copy link to clipboard
Copied
FormMagic can't, but FormMaker can (both char limits and field formatting). Free for short forms.
https://www.id-extras.com/products/formmaker/
(But in fact, ultimately even FormMaker is relying on Acrobat scripting to achieve these things. There's no way of doing it in InDesign that I know of.)
Copy link to clipboard
Copied
Thankyou for your reply
Copy link to clipboard
Copied
Thankyou for your reply
Copy link to clipboard
Copied
Hi @Praveena38872767xscr , You might want to ask in the Acrobat forum. Here is the Acrobat API—there is a Field object with a charLimit property:
https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/JS_API_AcroJS.html#charlimit
Copy link to clipboard
Copied
Thank-you
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more