Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
18626 มุมมอง

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

อวตาร
ละทิ้ง