No, can't be done.
Thanks for the reply. Is there any work around for this? Or do I need to create a generic dialog that gives them a field selection list where once they select a field I programmatically modify some of the properties I'm allowing them to change? In this case metadata...
If that's what you want to do then yes, you would need to display a list of the field names and have the user select from it (or have them enter the field's name into a text field, or something like that).
I don't know about whether it can be done using C++. Try the Acrobat SDK forum. I doubt it, though.
Ok thanks. And just to confirm, there's no way to add to the "Field Properties" UI is there?
You cannot modify anything in the Prepare Form tools from the standard API/SDK (JS or C++). Unless of course you are working with MS Windows and you know how to subclass windows and hijack messages, then of course, you can create a plug-in that gets in there. But it won't do you much good.
What exactly do you want to do? There is probably another way.
Thanks for the reply. I would like to either:
What field metadata are you referring too?
I'm just storing arbitrary metadata for some of the form fields under document.info.
But what metadata are you talking about?
the "info" object contains document metadata, not field metadata.
But you can do this as I pointed out earlier, you just can't detect which fields are selected.
Yep, ok, that's the route I was thinking I'd need to go.
Right, it's document metadata which I'm using to store metadata about certain fields since I'm not aware of any other place to store metadata associated with fields?
If you look down the list of field properties you'll find only a single one that can contain arbitrary text and not screw up the field, "userName" . This is the popup text displayed when the mouse hovers over the field. So you're correct.
Ok, thanks for the help!