I'm stumped (not really a high bar since I'm in no way a programmer); I'm trying to use javascript to add form fields to an Acrobat PDF file (using Pro DC).

this.addField("RB","radiobutton",0,[x1,y1,x2,y2]) will add the button with the first choice , and I've tried using similar syntax to add "RB.1", "RB.0" or just another "RB" with a different XY rectangle. Nothing works.

The closest I could find to an answer online said to use the .setItems(["yes","no"]) method; however, that throws an error. Using Object.keys() on the form field object only exposes some signature methods and set/get lock.

I'm suspecting I'm wasting time looking for the proverbial wild goose!

pdtcaskey's user avatar

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.