跳至内容
菜单
此问题已终结
1 回复
18579 查看

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')]}"

形象
丢弃