Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

How to limit the state and country field in a web form

Avatar
odoo
Avatar
Discard
2 Answers
0
Avatar
odoo
Best Answer

When you add the Country field to the Form, in the Field options, you will see the Option List where you can reorder or remove countries you don't need. 

For the state, I can't think of an easy way to automatically show the states for the selected countries without some javascript/controller codes. But if you know how to write these javascript/controller, you'd already written the whole custom form.

Avatar
Discard
0
Avatar
odoo
Best Answer

I am working on a v17 and I've got a task that have to create a form in website and in this when i select country it automatically shows only the states of that country and have to use onchange in JS side. So if anyone have done this please explain how to do it.

Avatar
Discard