By using data-form-part="product_form" in input tag, text values are getting. But how gets the drop down values.

When i used data-form-part="product_form" same in option, it gives an array with key index [undefined] and always give its last value of dropdown


1 Answer 1


We can get the values in post by using the following in select tag.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.