I am using QGIS 3.12.2 on Windows 10. I have created one large table layer to use as a ValueMap for multiple columns in a project. I need each column to show only the relevant values.

I have tried to add constraints but it only applies as validation on the selected values while each column still shows the full list.

Is there a way to limit the ValueMap list view to only a portion of the available values?

  • 3
    I currently have no real idea, what you're trying to do. Can you provide a screenshot of you current map and an example of what you're aiming at?
    – Erik
    Commented Jun 18, 2020 at 8:11

1 Answer 1


I seems you are trying to filter a table layer to provide in a form a list of choices. Although you can use "Value Map", if you want to get from one layer more than one list of choices, you should better use "Value Relation" instead of "Value Map" and here filter your list depending of conditions. Below, you can see a screenshot where we use a simple condition but you can use a more complex one

Expression in Value Relation

  • Yes, this is exactly what I needed. Thank you so much. Commented Jun 18, 2020 at 12: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.