type
Config
Collection names, field selection, overrides, and executable delivery callbacks.
Arguments
| Argument | Type | Description |
|---|---|---|
FormsSlug | schema.CollectionSlug | The FormsSlug value. |
SubmissionsSlug | schema.CollectionSlug | The SubmissionsSlug value. |
EnabledFields | []FieldType | The EnabledFields value. |
UploadCollections | []schema.CollectionSlug | The UploadCollections value. |
RedirectRelationships | []schema.CollectionSlug | The RedirectRelationships value. |
PaymentProcessors | []field.Option | The PaymentProcessors value. |
Fields | FieldsOverride | The Fields value. |
Forms | CollectionOverride | The Forms value. |
Submissions | CollectionOverride | The Submissions value. |
DefaultToEmail | string | The DefaultToEmail value. |
BeforeEmail | BeforeEmail | The BeforeEmail value. |
SendEmail | SendEmail | The SendEmail value. |
HandlePayment | HandlePayment | The HandlePayment value. |
ReportError | func(error, | 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)
}Related types
CollectionSlugA validated collection or global slug.
FieldTypeA dynamic input block discriminator.
OptionOption is one allowed value and its author-facing label for a select field.
FieldsOverrideReplace the complete ordered dynamic field-block set.
CollectionOverrideReplace one detached generated Forms or Form Submissions collection.
BeforeEmailTransform or filter a detached email batch after commit and before delivery.
SendEmailDeliver one formatted message with application-owned provider credentials.
HandlePaymentPerform provider work before commit and return the JSON result to persist.