# 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. Note: A few forms are not using the form mixin. In that case the `fieldHasErrors` function cannot be used. Instead you can rely on the `v$[fieldName].$error` property to check if there are errors. ## 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 `