Skip to main content
Inspiring
Mar 11, 2022 11:11 AM UTC
Answered

App level javascript to set properties of selected field

How do I access the properties of a selected field with an app level script?

 

 

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Mar 14, 2022 1:00 PM UTC

Sorry. I mean this state of a field: 

 


Yes, that's what I thought, and it's not possible to pick it up using a script.

6 replies

try67
Community Expert
Community Expert
Mar 11, 2022 11:14 AM UTC

What do you mean by "selected", exactly?

Translate
Inspiring
Mar 14, 2022 12:31 PM UTC

What I try to establish is a menu (or keyboard) command to set specific properties for a field element that currently is selected. For example; Arcobat Pro has a limited set of custom formats. So I want a macro that sets the Format property of a selected field to "special", "Arbitrary Mask" and "999.9999.9999.99". As I have to do this for a number of acrobat documents a macro makes sense.

Translate
try67
Community Expert
Community Expert
Mar 14, 2022 12:42 PM UTC

You still haven't explained what you mean by "selected". A script can process all the fields in the file, or it can process some fields, based on their name, what page their are on, their type, or other properties, but it has no way of knowing what fields you selected on the screen, if that's what you mean.

Translate