# Frontend forms The Baserow frontend has a form pattern to create reusable and optionally nested form components using the form mixin (`modules/core/mixins/form.js`). This pattern is a consistent way of creating forms, validation, reusability, and error handling. ## Structure - A form is always a standalone component that adds the `modules/core/mixins/form.js` mixin. - The `allowedValues` data should be an array containing the fields that are included in the form. Only these values will be included in the submit parameter. - The `values` data should contain an object with the default values. This can be overwritten by setting the property `:default-values={}` on the component. - A button should never submit a form directly. This must happen through the `