Skip to main content

DxButton.SubmitFormOnClick Property

Specifies whether the button can submit a form.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(false)]
[Parameter]
public bool SubmitFormOnClick { get; set; }

Property Value

Type Default Description
Boolean false

true to allow form submit; otherwise, false.

Remarks

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.
<EditForm>
  ...
  <DxButton SubmitFormOnClick="true" Text="Submit" RenderStyle="ButtonRenderStyle.Secondary" />
</EditForm>

Submit Button

Run Demo: Form Validation

See Also