experius / Magento-2-Module-Experius-ExtraCheckoutAddressFields

Add Extra Address Attributes to the Magento 2 Checkout
GNU General Public License v3.0
41 stars 25 forks source link

Select fields has error on Checkout form #18

Open miguelrock22 opened 3 years ago

miguelrock22 commented 3 years ago

When it's configured fields as select, Magento doesn't display it, and in the console we get the following error:

Uncaught ReferenceError: Unable to process binding “optgroup: function(){return options }”

The field is displayed but it doesn't have any option in there

image

Notes: Check this link for and code snippet to solve the problem

https://magento.stackexchange.com/questions/280897/in-magento-2-uncaught-referenceerror-unable-to-process-binding-optgroup-funct

Thanks!

miguelrock22 commented 3 years ago

Also, yo have to pass the options array defined in the source model, or wherever you definde the options for the select list, you can check https://devdocs.magento.com/guides/v2.4/ui_comp_guide/components/ui-select.html