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

attrs="{'readonly': [('a','=', 'b')]}"

attrs="{'invisible': [('c','=', 'd')]}"

How can i merge 2 codes into 1 .Just likes I have field 'country'. I want this field read only if a==b and invisible if c==d .

頭像
捨棄
最佳答案

attrs="{'invisible':[('a','=','b')],'readonly':[('c','=','d')]}"

頭像
捨棄