You could use the when condition on the config items, think that is what you’re asking for, example:
- name: database
title: "Postgresql Settings:"
items:
### When Feature Flag: Embedded Postgres is available ###
- name: postgres_type
help_text: Would you like to use an embedded postgres instance, or connect to an external instance that you manage?
type: select_one
title: Postgres
default: embedded_postgres
items:
- name: embedded_postgres
title: Embedded Postgres
- name: external_postgres
title: External Postgres
when: '{{repl eq (LicenseFieldValue "feature-flag-embedded-pg") "1" }}'