Submit button is not disabled while POST request is being executed


Description

The submit button element might remain clickable while a POST request is being run. The issue can result in submitting a form repeatedly.

Solution

To resolve the issue, you can customize the behavior to disable the submit button element upon a form submission. Proceed as follows:

  1. Open the \Views\FormBuilder\Form.cshtml file.
  2. Copy the script from the Form.txt file and paste it to the bottom of "Html.BeginRenderRouteForm" in the \Views\FormBuilder\Form.cshtml file.
  3. Save the changes.
  4. Clear the browser's cache.

Note: The code sample is given only as a starting point. You can modify the given script and the "The form is already submitted. Please wait." alert message as required.