Check hidden fields for widget type instead of specific class