Skip to content

Cannot set value on ChoiceField #287

Answered by gettalong
tg-digineo asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for sending the PDF!

The reason why this doesn't work is that the field has multiple widget annotations and the /Opt key is not set on the field itself but on the widget annotations.

I'm not sure if this is standards conform. And there is also the problem if the /Opt keys of multiple widgets don't agree on the allowed values.

To circumvent this problem, I will add a provision to HexaPDF to move the /Opt key of one of the widgets to the field itself and then delete all /Opt keys from the widgets.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gettalong
Comment options

Answer selected by gettalong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants