isHidden

fun isHidden(fieldName: String): Boolean

Whether the field is drawn: what this state says, or the Hidden flag of the field's own widget (ISO 32000-1 §12.5.3, Table 165, bit 2). A script changes it through field.display or field.hidden.