Skip to main content

DxButton.SubmitFormOnClick Property

Specifies whether the button can submit a form.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor


public bool SubmitFormOnClick { get; set; }

Property Value

Type Default Description
Boolean false

true to allow form submit; otherwise, false.


To use a <DxButton> to submit a form (equivalent to type=”submit” HTML button):

  1. Place the <DxButton> inside a form.
  2. Set the SubmitFormOnClick option to true.
  <DxButton SubmitFormOnClick="true" Text="Submit" RenderStyle="ButtonRenderStyle.Secondary" />

Submit Button

Run Demo: Form Validation

See Also