跳至內容
選單
此問題已被標幟
1 回覆
4623 瀏覽次數

I am creating a form and I would like to know how to hide fields when a field is filled and when the hided fields appear again when the field is empty again

頭像
捨棄
最佳答案

Hi, you can use xml attrs ,

<field name="column1"/>

<field name="column2" attrs="{'invisible':[('column1','!=',False)]}" />

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
9月 24
1877
1
2月 21
6250
1
3月 15
7480
1
2月 21
14087
1
2月 16
8275