Select value not sent in form


Topic: Select value not sent in form

neocheck premium asked 10 months ago

Expected behavior I expect to sent all values included into the form with method POST. I specified the form id in the tag "form" from select element to help this but value selected is never sent.

Actual behavior All the values from inputs with type text are sent but selected options in the select elements with ids "alertCategoryFilter" and "statusFilter" are missing.

Resources (screenshots, code snippets etc.)

This is my form: Frontend

The code: Code

Form data sent: FormData


Dawid Wajszczuk staff commented 10 months ago

Hi. Can you provide the entire code for this form in a snippet https://mdbootstrap.com/snippets/? Does not using form tag change anything?


neocheck premium commented 10 months ago

Hi. You can see the code in the following private snippet: https://mdbootstrap.com/snippets/standard/neocheck/3365880

The behavior doesn't change without form tag.


Dawid Wajszczuk staff commented 10 months ago

Try using name attribute with these selects and let me know if this works.


neocheck premium commented 10 months ago

Using name attribute works fine. If the select has no value it is not sent but this is not a problem for me.

Thank you for your help.


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue
  • User: Premium
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: Laptop
  • Browser: Chrome 94.0.4606.71
  • OS: Windows
  • Provided sample code: No
  • Provided link: No