Is there a possibility in QGIS setting a field (column) of the Attribute Table to not visible?

In the properties-dialogue of the layer, I couldn't find anything.

3 Answers 3


The option you want is under 'Layer properties', but depending on the version it's either under:

  1. Layer Properties
  2. Fields
  3. Select 'Line Edit' in field(column) which you want to hide
  4. Select 'Hidden'

Or in QGIS 3.8.2 it's:

  1. Layer Properties
  2. Attributes Form
  3. Select the column you want to hide under 'Fields'
  4. Select 'Hidden' under 'Widget Type'

enter image description here

  • 2
    Perhaps useful to someone at some point, the equivalent using PyQGIS [for the 0th field]: layer.setEditType(0, QgsVectorLayer.Hidden) Commented Jan 20, 2014 at 15:13
  • Your second approach to select the field as a "hidden" widget type in the attributes form does not work for me in QGIS 3.12 on a GeoPackage layer any more. I posted a new, easier approach as separate answer.
    – der Michi
    Commented May 2, 2020 at 12:48
  • This is not working, the field is still visible through the attribute table
    – Luffydude
    Commented Sep 20, 2021 at 17:21

I found this via HasT's answer, but in QGIS 2.6.1-Brighton it's:

  1. Layer Properties
  2. Fields
  3. 'Edit widget' column
  4. Text Edit
  5. 'Hidden' from the list box (found this last step misleading since there are no other options, you just hit OK)

If your attribute table was already open, you'll have to close it and reopen it to see the changes.

If anyone knows how to batch the hiding fields steps, please comment. Kind of annoying when there's a ton of fields to hide!


Hiding of attribute fields got easier recently. According to v3.10 of the documentation on hiding of columns you can change the visibility of a column directly from the attribute table:

By right-clicking in a column header, you can choose to hide it from the attribute table.

  • although strictly speaking, this works for the Attribute table, a user can still see all fields when identifying a feature with the Identify Features tool.
    – Theo F
    Commented Dec 5, 2022 at 14:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.