# Application Form: View Only Form

Read only form state with a permission banner, every field disabled at its saved value, and a footer explaining why save is off.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/view-only-form
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Forms](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/view-only-form.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-forms-view-only-form
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: button, input, label, select, switch
- Installs to: `@/components/blocks/application-pro/forms/view-only-form`

## About this block

View Only Form is a permission locked form state. A banner
under the header explains that the current role is Viewer
and offers a Request edit access action, then every field
below renders disabled inside a single fieldset while still
showing its real saved value: project name, production
branch, runtime version, build command, and an auto deploy
switch.

Wrapping the whole form in a disabled fieldset is what mutes
every control in one place, so the markup stays identical to
the editable version. The footer keeps the Save changes
button visible but disabled and states plainly why, rather
than hiding the action and leaving the role guessing. It
shows how a form should degrade for read only roles instead
of vanishing.

## When to use

Reach for this block anywhere a form is gated by role or
plan, wired so the disabled flag follows your permission
check. Showing the real values in a locked state lets a
Viewer confirm the current configuration and know exactly
what to request access to change.

A natural flow around it on an Application Pro page:

**Before**

- [Settings pages](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages)

**After**

- [Teams orgs](https://www.shadcn-ui-blocks.com/blocks/application-pro/teams-orgs)
- [Billing](https://www.shadcn-ui-blocks.com/blocks/application-pro/billing)

## What you can display

One strong use is a build settings panel for a Viewer.
Other read only form states:

- **Billing settings.** Plan and payment method shown but
  locked until a billing admin role is granted.
- **Security policy.** MFA and IP rules visible to every
  member, editable only by an owner.
- **Locked plan feature.** Fields present but disabled with
  the footer pointing to an upgrade instead of a role.

> Tip: keeping the disabled Save button visible with a reason
> beats hiding it, which only reads as a broken form.

## More in Application Forms

- [Address Form Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/address-form-card)
- [API Token Create Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/api-token-create-form)
- [Bulk Import CSV Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/bulk-import-csv-card)
- [Conditional Fields Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/conditional-fields-form)
- [Create Project Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/create-project-form)
- [Cron Schedule Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/cron-schedule-form)
- [Danger Zone Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/danger-zone-form)
- [Date Range Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/date-range-form)
- [Feedback Form Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/feedback-form-card)
- [File Field Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/file-field-form)
- [Inline Edit Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/inline-edit-form)
- [Inline Validation Fields](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/inline-validation-fields)
- [Managed Fields Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/managed-fields-form)
- [Multi Step Form Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/multi-step-form-panel)
- [Notification Matrix Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/notification-matrix-form)
- [Password Strength Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/password-strength-form)
- [Payment Details Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/payment-details-form)
- [Query Builder Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/query-builder-form)
- [Repeatable Rows Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/repeatable-rows-form)
- [Review and Submit Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/review-and-submit-card)
- [Rich Text Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/rich-text-form)
- [Searchable Select Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/searchable-select-blueprint)
- [Settings Form Two Col](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/settings-form-two-col)
- [Stepper Wizard Review](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/stepper-wizard-review)
- [Tag Input Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/tag-input-form)
- [Threshold Slider Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/threshold-slider-form)
- [Unsaved Changes Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/unsaved-changes-form)
- [Validation States Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/validation-states-form)
- [Weekly Hours Form](https://www.shadcn-ui-blocks.com/blocks/application-pro/forms/weekly-hours-form)
