Can't seem to get a conditional field to work in a Blueprint when a select option is used.
In the following it is the field 'condition' under 'thirdparty' that is causing me pain.
(This is a part of a plugin's blueprints.yaml file.)
provider:
type: select
label: Map imagery provider
options:
openstreetmap: Open Street Map
thunderforest: Thunderforest
mapbox: Mapbox
default: openstreetmap
thirdparty:
type: conditional
condition: "config.plugins.map-leaflet.provider == 'openstreetmap' ? 'true' : 'false' "
fields:
apikey:
type: text
label: API Key if provider needs it
help: You should register your own API key with the provider and include it here
default: 'querty'
I have tried is same as instead of == in condition, but I still get problems.
I save the change each time. I have got conditional fields working before in blueprints, but only with fields that themselves were boolean.
I can't figure out what I am doing wrong.