Restrict values shown in enumerations

Question from @tobias-digital-tensor:
Hi! Is it possible to restrict enumeration values in the form model in an easy way? I only found dependent enumeration which needs a master enum field. Is there an easier way?

My use case is restricting the enumeration values based on an “always” precondition. I can’t remove the values from the document model as the enumeration field is shared with another project.

From @eva-solid-surge:
Hi @tobias-digital-tensor, is there any other enum field in the document model which you could use as master field?

From @tobias-digital-tensor:
So there is no other option other then having a master enum field?

From @eva-solid-surge:
None that i know of via modelling and without adding a helper field.

From @christine-solid-alder:
Maybe working with external enumerations would be an option?

From @tobias-digital-tensor:
Hi @christine-solid-alder, it would be an option yes but i wanted to know if there’s an easier way via modelling.

The relevant documentation for dependent enumerations can be found here. This explains how for each setting of the master field, a different group of values from the dependent enumeration can be selected.

In the use case that a reduced set of enumeration values are always shown, the same set of values would be selected for each setting in the master field. One example from other projects is using the “Form of Address” (Mr., Mrs., Ms., Dr. etc.) as the master field.