Allow fields to be hidden/shown based on the values of a dropdown field.
Configuration requires a json object with the keys as lowercase strings, and the values as the api keys of the fields to show when the value is present.
This plugin will combine all the fields for each key and hide them all on a new record and that is how it determines what fields to hide.
Install all the project dependencies with:
Add this plugin in development mode to one of your DatoCMS project with:
yarn addToProject
Start the local development server with:
yarn start
The plugin will be served from <http://localhost:5000/>. Insert this URL as the plugin Entry point URL.
Before publishing this plugin, make sure:
package.json
following the official rules;cover.png
) and a preview GIF (preview.gif
) into the docs
folder.When everything's ready, just run:
yarn publish