تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
18496 أدوات العرض

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

الصورة الرمزية
إهمال