How to know if field is hidden or not using code?

I want to use be able to use the property, hidden, of a field in an if else statement. How could I do that?

cur_frm.get_docfield("FIELDNAME").hidden
1 Like