npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@art-design-digital/payload-plugin-forms-v3

v1.0.3

Published

A Payload plugin for forms. This plugin adds a global collection of forms to your Payload instance. You can create and manage forms in the admin interface, and then render them in your frontend application.

Readme

Payload Plugin Forms v3

A flexible forms plugin for Payload CMS v3. Create and manage forms with configurable fields, email settings, and feedback messages.

Features

  • Create and manage forms with multiple field types
  • Configurable field widths (1/1, 1/2, 1/4, 3/4)
  • Sender/receiver email configuration
  • Customizable success and error messages
  • Conditional field display
  • Autocomplete attribute support
  • Full i18n support (EN, DE, ES, FR, NL)
  • Optional field localization

Installation

npm install @art-design-digital/payload-plugin-forms-v3
# or
pnpm add @art-design-digital/payload-plugin-forms-v3
# or
yarn add @art-design-digital/payload-plugin-forms-v3

Usage

Add the plugin to your Payload config:

import { buildConfig } from 'payload'
import { formsPlugin } from '@art-design-digital/payload-plugin-forms-v3'

export default buildConfig({
  // ... your config
  plugins: [
    formsPlugin({
      // Optional: Admin group name
      adminGroup: 'Content',
      // Optional: Enable localization for form field labels
      localized: true,
      // Optional: Override access control
      access: {
        read: () => true,
        create: ({ req }) => req.user?.role === 'admin',
        update: ({ req }) => req.user?.role === 'admin',
        delete: ({ req }) => req.user?.role === 'admin',
      },
      // Optional: Disable the plugin (keeps schema for migrations)
      disabled: false,
    }),
  ],
})

Configuration Options

| Option | Type | Default | Description | | ------------ | ---------------------------- | ---------------------- | ---------------------------------------------------- | | adminGroup | string | undefined | Admin panel group name for the Forms collection | | localized | boolean | false | Enable localization for form field labels | | access | CollectionConfig['access'] | { read: () => true } | Override access control for the Forms collection | | disabled | boolean | false | Disable the plugin (schema preserved for migrations) |

Form Field Types

The plugin supports these field types:

| Type | Description | | ---------- | ------------------------------- | | text | Single-line text input | | textarea | Multi-line text input | | email | Email input with validation | | number | Numeric input with min/max/step | | tel | Telephone number input | | url | URL input with validation | | dropdown | Select dropdown with options | | radio | Radio button group | | checkbox | Single checkbox | | date | Date picker | | time | Time picker | | datetime | Date and time picker |

Form Field Configuration

Each form field can be configured with:

| Field | Description | | -------------- | --------------------------------------------------------- | | label | Display label for the field | | fieldType | Type of field (see above) | | width | Field width: full, half, onequarter, threequarter | | required | Whether the field is required | | placeholder | Placeholder text | | description | Help text below the field | | default | Default value | | autocomplete | HTML autocomplete attribute | | condition | Conditional display based on another field's value |

Type-specific options

  • text/textarea: minLength, maxLength, rows (textarea only)
  • number: minValue, maxValue, step
  • dropdown/radio: options array with label and value
  • date/datetime: minDate, maxDate

Form Structure

Each form includes:

Form Fields

An array of configurable form fields with the options described above.

Sender/Receiver Settings

  • senderName - Name shown in email "From" field
  • senderMail - Email address for the sender
  • receiver - Email address(es) to receive submissions
  • subject - Email subject line

Messages

  • submitLabel - Text for the submit button
  • successMessage - Message shown on successful submission
  • errorMessage - Message shown on submission error

Fetching Forms

You can fetch forms using the Payload Local API or REST API:

// Local API
const forms = await payload.find({
  collection: 'forms',
  where: {
    name: { equals: 'Contact Form' },
  },
})

// REST API
// GET /api/forms?where[name][equals]=Contact Form

i18n Support

The plugin includes translations for:

  • English (en)
  • German (de)
  • Spanish (es)
  • French (fr)
  • Dutch (nl)

All field labels, validation messages, and UI elements are translated based on your Payload admin language setting.

TypeScript

The plugin exports types for use in your project:

import type {
  FormsPluginConfig,
  Form,
  FormField,
  FormFieldOption,
  AutocompleteValue,
  FormFieldCondition,
} from '@art-design-digital/payload-plugin-forms-v3'

import { FIELD_TYPES, WIDTHS } from '@art-design-digital/payload-plugin-forms-v3'

License

MIT