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

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
1639
1
2月 21
6058
1
3月 15
7292
1
2月 21
13923
1
2月 16
7973