Default value of boolean field type

Hi, is there any way to set default_value of boolean field type ? By default it’s false is it possible to change it ?

Hello Marcin

it is not possible to change the the standard value in this field type but you can create a preset (https://www.storyblok.com/cl/new-presets) for a story with preconfigured and filled fields and set it there to enabled or you create your own field type plugin that does exactly that what you want. You can find the documentation here:
https://www.storyblok.com/docs/plugins/introduction

Examples for working plugins are available on these pages:
https://app.storyblok.com/#!/me/plugins
https://gist.github.com/onefriendaday look for fieldtype.js

With best regards
Hannes

1 Like

Thank you for answer @Hannes :slight_smile:

1 Like