Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
18620 Visninger

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 .

Avatar
Kassér
Bedste svar

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

Avatar
Kassér