How can I edit the Format Category of a Text Field Property using Javascript
Howdy,
I did my best to locate how to edit a text field property via javascript in this guide:
https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/js_developer_guide.pdf
My situation:
Currently, I am using javascript to copy each field in a pdf, copy all of its attributes under a new name, and replace the old field. (Thanks to the way copying a field works. IE it keeps the same name and entering information into the original field duplicates that data into the copied fields as well. Cannot manually change the names of 500+ fields daily..) I got the script to run great with one problem. Text Fields can have a format category of "Date," and I cannot seem to figure out how to set this attribute when I create the object via javascript (the fields dont have the calendar option to the right of them, they are just regular text boxes).
Example of what I am looking for:
var f = this.addField("coolname", "text", 0, [200, 250, 250, 400]);
f.format = "date";
Hope this was clear, thanks for the help!