Skip to content

Is there a way to determine a field's visibility status? #1644

Closed Answered by iwilson001
iwilson001 asked this question in Q&A
Discussion options

You must be logged in to vote

I didn't figure this out on my own. I got help and this is what we ended up with. Once we have the field, we can access the acroField property and subsequently, the getWidgets() function. From there it's a matter of iterating over the widgets and checking to see if it has the annotation flag of hidden w.hasFlag(AnnotationFlags.Hidden) where w is of type PDFWidgetAnnotation, and AnnotationFlags comes from this library, src/core/annotation/flags.ts.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by iwilson001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant