Topic: Select value not sent in form
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:
The code:
Form data sent:
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- 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
Dawid Wajszczuk staff commented 3 years 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 pro premium commented 3 years 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 3 years ago
Try using name attribute with these selects and let me know if this works.
neocheck pro premium commented 3 years 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.