I am creating form update customer address

how can i create country and provice drop down option if there is api or some method provided by shopify
No description
2 Replies
Smelvin
Smelvin15h ago
Hello, Could you provide more details or a code snippit? Are you using an AutoForm? If you are using an AutoForm and have an enum in your model you could write something like this:
<AutoForm action={api.yourModel.create}>
<AutoEnumInput field="country" />
<AutoForm action={api.yourModel.create}>
<AutoEnumInput field="country" />
I have the documentation here for AutoForms as well https://docs.gadget.dev/reference/react/auto#autoform- If it is alright with you I will mark this thread as resolved. If you have any more questions feel free to re-open by replying
Gizmo
Gizmo15h ago
Do you like this answer? ​

Did you find this page helpful?