Topic: Use Flask {{ form.submit() }} as Form Submit

tom premium asked 1 month ago


Flask - WTForms uses as Submit Button of a Form this variable: {{ form.submit() }}

When I use this variable, the frontned generates this input field:

<input class="btn btn-primary" id="submit" name="submit" type="submit" value="Login">

Unfortunately the form does not respond until I double click on the input field.

MDB seems to respond only to button tags in the form.

<button class="btn btn-primary" type="submit">Submit Form</button>

If I use the standard bootstrap, then sending with the input field generated by {{ form.submit() }} also works.

Does anyone have an idea what this could be?


Grzegorz Bujański staff answered 1 month ago


Thanks for reporting. We already have a task added to fix this bug. We will try to fix it as soon as possible



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • User: Premium
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 4.4.0
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No