---
title: "GET /api/database/views/form/{slug}/submit/"
method: GET
path: "/api/database/views/form/{slug}/submit/"
tags: ["Database table form view"]
---

# GET /api/database/views/form/{slug}/submit/

`GET /api/database/views/form/{slug}/submit/`

Returns the metadata related to the form view if the form is publicly shared or if the user has access to the related workspace. This data can be used to construct a form with the right fields.

## Path parameters

- `slug` string, required

## Response `200`

- PublicFormView
  - `title` string — The title that is displayed at the beginning of the form.
  - `description` string — The description that is displayed at the beginning of the form.
  - `mode` 'form' | 'survey' — * `form` - form * `survey` - survey
  - `cover_image` UserFile
    - `size` integer, required
    - `mime_type` string
    - `is_image` boolean
    - `image_width` integer, nullable
    - `image_height` integer, nullable
    - `uploaded_at` string, date-time, required
    - `url` string, uri, required
    - `thumbnails` object, required
    - `name` string, required
    - `original_name` string, required
  - `logo_image` UserFile
    - `size` integer, required
    - `mime_type` string
    - `is_image` boolean
    - `image_width` integer, nullable
    - `image_height` integer, nullable
    - `uploaded_at` string, date-time, required
    - `url` string, uri, required
    - `thumbnails` object, required
    - `name` string, required
    - `original_name` string, required
  - `submit_text` string — The text displayed on the submit button.
  - `fields` PublicFormViewFieldOptions[], required
    - `name` string, required — If provided, then this value will be visible above the field input.
    - `description` string — If provided, then this value be will be shown under the field name.
    - `required` boolean — Indicates whether the field is required for the visitor to fill out.
    - `order` integer — The order that the field has in the form. Lower value is first.
    - `field` PublicFormViewField, required
      - `id` integer, required
      - `name` string, required
      - `type` string, required — The type of the related field.
    - `show_when_matching_conditions` boolean — Indicates whether this field is visible when the conditions are met.
    - `condition_type` 'AND' | 'OR' — * `AND` - And * `OR` - Or
    - `conditions` FormViewFieldOptionsCondition[]
      - `id` integer, required
      - `field` integer, required
      - `type` string, required — Indicates how the field's value must be compared to the filter's value. The filter is always in this order `field` `type` `value` (example: `field_1` `contains` `Test`).
      - `value` string — The filter value that must be compared to the field's value.
      - `group` integer, nullable
    - `condition_groups` FormViewFieldOptionsConditionGroup[]
      - `id` integer, required
      - `filter_type` 'AND' | 'OR' — * `AND` - And * `OR` - Or
      - `parent_group` integer, nullable
    - `groups` FormViewFieldOptionsConditionGroup[]
      - `id` integer, required
      - `filter_type` 'AND' | 'OR' — * `AND` - And * `OR` - Or
      - `parent_group` integer, nullable
    - `field_component` string — Indicates which field input component is used in the form. The value is only used in the frontend, and can differ per field.
  - `show_logo` boolean
  - `allow_public_export` boolean — Indicates whether it's allowed to export a publicly shared view.

## Other responses

- `401`
- `404`

---

[API](https://skmtc.net/baserow/apis/baserow-api-spec.md) · [All operations](https://skmtc.net/baserow/apis/baserow-api-spec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/baserow/baserow-api-spec/revisions/0c490e5b0c7f/schema)
