6

I've had some success at creating the drop down lists for attributes in QGIS 3.16 using the Attribute Form option in Layer Properties, as shown here: Creating a multiple select dropdown list in QGIS?

My problem is that whenever I remove the layer and then bring it back into QGIS, my drop down lists are not an option in the attributes. They have gone.

Could anyone give guidance to how to make drop down lists permanent, so when I export a shapefile or bring it back into QGIS, the drop down lists remain?

Taras
35.8k5 gold badges77 silver badges152 bronze badges
asked Sep 27, 2021 at 2:27

1 Answer 1

7

You will have to save the style for this layer and load it when you will load your shapefile back to your QGIS project.

  • To save the style: right click on the Layer -> Export -> Save as QGIS Layer Style File
  • Import style saved in previous step: Layer properties -> Symbology -> Layer styling -> Style -> Load Style

Or alternatively

  • Save layer as geopackage. Then you can save style inside geopackage and use that style as a default. Layer properties -> Symbology -> Layer styling -> Style -> Save as default -> Datasource Database

Just make sure that when saving a style, you also check the Forms option. It is checked by default.

Save Layer Style

RafDouglas C. Tommasi
6,6271 gold badge18 silver badges43 bronze badges
answered Sep 27, 2021 at 6:24
1
  • Thank you for taking the time to provide the answer. Commented Sep 27, 2021 at 21:31

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.