Select Dropdown Val not being submitted on Form Submission
Hi,
I have an adaptive form with a select dropdown. I have a JS written which selects an option from the dropdown based on query parameter. E.g (?car=audi will select AUDI from dropdown). The JS is working as expected. On page load it selects the correct option.
ISSUE : When I try to submit the form I get a validation error saying 'Please select an item from the dropdown'. Somehow the form is not able to fetch the val for the select. I have printed the val in console and it is coming as expected. I have tried by added .change() to trigger a change in JS. But the same issue persists.
Can someone please share some insights on what might be going wrong?