# How to define default value in field type (not in options)

**URL:** <https://discourse.getcockpit.com/t/how-to-define-default-value-in-field-type-not-in-options/1796>\
**Category:** Support\
**Created:** [January 18, 2021, 8:25pm UTC](https://discourse.getcockpit.com/t/how-to-define-default-value-in-field-type-not-in-options/1796 "2021-01-18T20:25:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![serjoscha87](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/serjoscha87/32/151_2.png) [@serjoscha87](https://discourse.getcockpit.com/u/serjoscha87)\
**Post date:** [January 22, 2021, 1:28pm UTC](https://discourse.getcockpit.com/t/how-to-define-default-value-in-field-type-not-in-options/1796/2 "2021-01-22T13:28:58Z")

</div>

most things you put to the json is reflected onto the fields in the resulting form.

See [Collection Field: Email Validation - #2 by serjoscha87](https://discourse.getcockpit.com/t/collection-field-email-validation/1299/2) for detailed information

So you could actually try to set the “value” field. But I’m not sure if this could not cause any torubles. But you can give it a try

---

_[View the full topic](https://discourse.getcockpit.com/t/how-to-define-default-value-in-field-type-not-in-options/1796)._
