type

Config

Collection names, field selection, overrides, and executable delivery callbacks.

Arguments

ArgumentTypeDescription
FormsSlugschema.CollectionSlugThe FormsSlug value.
SubmissionsSlugschema.CollectionSlugThe SubmissionsSlug value.
EnabledFields[]FieldTypeThe EnabledFields value.
UploadCollections[]schema.CollectionSlugThe UploadCollections value.
RedirectRelationships[]schema.CollectionSlugThe RedirectRelationships value.
PaymentProcessors[]field.OptionThe PaymentProcessors value.
FieldsFieldsOverrideThe Fields value.
FormsCollectionOverrideThe Forms value.
SubmissionsCollectionOverrideThe Submissions value.
DefaultToEmailstringThe DefaultToEmail value.
BeforeEmailBeforeEmailThe BeforeEmail value.
SendEmailSendEmailThe SendEmail value.
HandlePaymentHandlePaymentThe HandlePayment value.
ReportErrorfunc(error, string)The ReportError value.

Full signature

type Config struct { FormsSlug schema.CollectionSlug SubmissionsSlug schema.CollectionSlug EnabledFields []FieldType UploadCollections []schema.CollectionSlug RedirectRelationships []schema.CollectionSlug PaymentProcessors []field.Option Fields FieldsOverride Forms CollectionOverride Submissions CollectionOverride DefaultToEmail string BeforeEmail BeforeEmail SendEmail SendEmail HandlePayment HandlePayment ReportError func(error, string) }

Source plugins/formbuilder/formbuilder.go:59

Related types

  • CollectionSlug

    A validated collection or global slug.

  • FieldType

    A dynamic input block discriminator.

  • Option

    Option is one allowed value and its author-facing label for a select field.

  • FieldsOverride

    Replace the complete ordered dynamic field-block set.

  • CollectionOverride

    Replace one detached generated Forms or Form Submissions collection.

  • BeforeEmail

    Transform or filter a detached email batch after commit and before delivery.

  • SendEmail

    Deliver one formatted message with application-owned provider credentials.

  • HandlePayment

    Perform provider work before commit and return the JSON result to persist.