How can I achieve State and Country field functionality in Admin under customer Account Information?

I have referred this link to create in front-end


In customer Registration form got the functionality.

enter image description here

I did a small change in custom attribute I used Magento\Catalog\Model\Product\Attribute\Source\Countryofmanufacture source to list the country. For state I refereed the above link.

In Admin I don't know how to achieve state functionality.

enter image description here

I need to achieve state list if options are available and text field if not.

Can someone help me with this I referred lost of blog and Stack Exchange but can't find a single post that explains the workflow to achieve in admin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.