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

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
1536
1
2月 21
5916
1
3月 15
7159
1
2月 21
13782
1
2月 16
7854