---
url: "https://vueda.dev/v3/reference/api/js/use/useViewCreate/types/ViewCreateOptions.md"
title: "ViewCreateOptions"
---

# ViewCreateOptions

## Overview

Required identification.

## Properties

### app {#app}

Django app label that owns the model.

Type: `string`

Source: `client/lib/use/useViewCreate.js:84`

### expand {#expand}

Relations that the form renders as inline fieldsets. Replaces the model config list.

Type: `string[]`

Source: `client/lib/use/useViewCreate.js:94`

### expandDetails {#expandDetails}

Map of expand paths to detail overrides.

Type: `any`

Source: `client/lib/use/useViewCreate.js:95`

### fetchFields {#fetchFields}

Field names the server returns in the create response; overrides the model config default when non-empty.

Type: `string[]`

Source: `client/lib/use/useViewCreate.js:89`

### fieldComponents {#fieldComponents}

Map of field paths to field component overrides.

Type: `any`

Source: `client/lib/use/useViewCreate.js:96`

### fieldDetails {#fieldDetails}

Map of field paths to field detail overrides.

Type: `any`

Source: `client/lib/use/useViewCreate.js:93`

### fieldProps {#fieldProps}

Map of field paths to props for each field component.

Type: `any`

Source: `client/lib/use/useViewCreate.js:98`

### fields {#fields}

Field names that the form renders. Replaces the model config list.

Type: `string[]`

Source: `client/lib/use/useViewCreate.js:92`

### formModelVariant {#formModelVariant}

Theme variant that the FormModel component receives as `variant`.

Type: `string`

Source: `client/lib/use/useViewCreate.js:100`

### formProps {#formProps}

Extra props for the FormModel component. They win over the model config's `formProps` and lose to the form props below. The `app`, `model`, and `view` keys are ignored, because the view sets them.

Type: `any`

Source: `client/lib/use/useViewCreate.js:91`

### model {#model}

Django model name.

Optional form overrides.

Type: `string`

Source: `client/lib/use/useViewCreate.js:85`

### redirectAfter {#redirectAfter}

Named view to redirect to after a successful create.

Type: `"list" | "update" | "read"`

Source: `client/lib/use/useViewCreate.js:90`

### submitFields {#submitFields}

Field paths sent in the create request body; overrides the model config default when non-empty.

Type: `string[]`

Source: `client/lib/use/useViewCreate.js:88`

### widgetComponents {#widgetComponents}

Map of field paths to widget component overrides.

Type: `any`

Source: `client/lib/use/useViewCreate.js:97`

### widgetProps {#widgetProps}

Map of field paths to props for each widget component.

Type: `any`

Source: `client/lib/use/useViewCreate.js:99`

## Source

`client/lib/use/useViewCreate.js:81`
