Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
601 มุมมอง

how to show and hide a field based on another radio button value

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

We can use the 'invisible' attribute inside the XML code,

for example,


<field name="desired_field" string="Next Number" invisible="radio_field"/>


Replace the desired_field and radio_field based on your model.


For more details, refer to the slide:

https://www.cybrosys.com/slides/how-to-make-a-field-invisible-in-odoo-17

Hope it helps

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi Rachel, where are you trying to execute this conditional field? Website form? One of the core Odoo apps? More context would be helpful.

อวตาร
ละทิ้ง