Hi.
Is there a way to populate combobox menu items at runtime? How can I do that?
Thanks, Slava
Dynamic combobox drop down menu items
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: Dynamic combobox drop down menu items
Hello Slava,
You can execure JS to update objects inside a PDF document,
Please check the "JavaScript ™ for Acrobat ® API Reference".
Best,
Stefan
You can execure JS to update objects inside a PDF document,
Please check the "JavaScript ™ for Acrobat ® API Reference".
Best,
Stefan
-
- User
- Posts: 16
- Joined: Wed Jun 27, 2007 7:55 pm
Re: Dynamic combobox drop down menu items
Hi, Stefan.
Thanks for reference.
The code below worked.
var c = this.getField("DepartmentNames");
c.setItems([
["Online Help", "http://www.example.com/myhelp.html"],
["How to Print", "http://www.example.com/myhelp.html#print"],
["How to eMail", "http://www.example.com/myhelp.html#email"]
]);
Thanks for reference.
The code below worked.
var c = this.getField("DepartmentNames");
c.setItems([
["Online Help", "http://www.example.com/myhelp.html"],
["How to Print", "http://www.example.com/myhelp.html#print"],
["How to eMail", "http://www.example.com/myhelp.html#email"]
]);
-
- Site Admin
- Posts: 19885
- Joined: Mon Jan 12, 2009 8:07 am
Re: Dynamic combobox drop down menu items
Great to hear Slava!
Cheers,
Stefan
Cheers,
Stefan