Skip to Content
Menu
This question has been flagged
1 Atsakyti
6323 Rodiniai

I try to invisible some field by clicking check box but I don't know how can I make it .

please help me.

thank you so much

Portretas
Atmesti
Best Answer

Yes, it is possible. Try this (in xml):

<field name="my_checkbox"/>
<field name="my_foo1" attrs="{'invisible':[('my_checkbox','=',False)]}"/>
<field name="my_foo2" attrs="{'invisible':[('my_checkbox','!=',False)]}"/>

or like this:

<field name="my_foo3" invisible="context.get('my_checkbox',False)"/>

 

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
rugp. 18
3694
3
rugp. 15
3511
2
liep. 15
5244
0
kov. 15
4220
1
kov. 15
3359