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


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

smartsys pro premium asked 2 years 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 2 years ago

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


tom pro premium answered 2 years ago

Hello, the bug is now over a month old. Is there a date when the bug should be fixed?


Grzegorz Bujański staff commented 2 years ago

This will be fixed in the next release. Unfortunately, I cannot say when we will be ready to release the next version. We are currently working on synchronizing the MDB to the latest version of the bootstrap. In the new version, there were changes that require a lot of work on our side. We are nearing the end, but we still need some time to finish and test it


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: Pro
  • 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