datocms / plugins

Repository providing samples using the Plugins SDK
MIT License
33 stars 47 forks source link

Conditional Fields: non-exposure warning when used twice on a field #66

Closed colinhowells closed 2 years ago

colinhowells commented 2 years ago

I have Conditional Fields on a boolean, and while the plugin works fine, there's a perpetual error:

ADD-ON MISSING!
The Conditional fields plugin is not exposing the add-on "conditionalFields" anymore. Please remove this addon or consult the plugin author to sort this out!

Since I can't hide fields by default, I need to be able to hide some fields and show others, and I think the only way I can do that is by using the plugin twice on a field (seen below) and that's triggering the error – though the plugin does what I need it to do despite it.

I think, given that the plugin still works, this use case could be accommodated? Or maybe the UI of it could be revised so that showing and hiding could be done in one operation.

conditionalFields

stefanoverna commented 2 years ago

Could you please provide your DatoCMS project ID, and the ID of the field where this is happening? Thanks!

colinhowells commented 2 years ago

Sure – project 66134, primary env field 4555336

stefanoverna commented 2 years ago

Should be fixed now! Thanks for reporting @colinhowells! :)

colinhowells commented 2 years ago

Many thanks!