跳转到主要内容

Form Submission Notification

This block is experimental and may change or be removed without notice.

Provide a notification message after the form has been submitted.

  • Name: core/form-submission-notification
  • Category: widgets
  • API Version: 3
  • Block Type: Hybrid (static save + server enhancements)
  • Keywords: form, feedback, notification, message

Block Relationships

Ancestor blocks:
– core/form

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
type string "success" —

Supports

Defined via the supports property in block.json.

This block does not declare explicit supports.

Block Markup

This is a hybrid block. It saves static markup that the server may enhance during rendering.

<!-- wp:form-submission-notification -->
<div class="wp-block-form-submission-notification form-notification-type-success"><!-- wp:paragraph {"style":{"elements":{"link":{"color":{"text":"#000000"}}}},"backgroundColor":"#00D084","textColor":"#000000"} -->
<p class="has-000000-color has-00-d-084-background-color has-text-color has-background has-link-color">Your form has been submitted successfully.</p>
<!-- /wp:paragraph --></div>
<!-- /wp:form-submission-notification -->

Source