Topic: Form with Radio Inputs doesn't submit the selected field
vgoenka free asked 3 years ago
Expected behavior I have a radio input field with name="priority" and id that varies for each option (say, ids are respectively, "high", "medium", and "low")
When the form is submitted, I expect the form submission to contain "priority=high" or "priority=medium" or "priority=low" depending on which option was selected.
Actual behavior The form submission results in "priority=on". So I know one of the options was selected, but not which one.
Resources (screenshots, code snippets etc.)
High Priority Medium Priority Low PriorityFREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: 3.2.0
- Device: Macbook
- Browser: Chrome
- OS: MacOS
- Provided sample code: No
- Provided link: No
Dawid Wajszczuk staff commented 3 years ago
Hi. Could you please provide a snippet with this form and this radio input? It will help a lot. Thanks.
vgoenka free commented 3 years ago
Thank you Dawid. I realized that adding a value="some-value" attribute to each radio input field fixed it for me.