Skip to Content
Menu
This question has been flagged
1 Atsakyti
6256 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
3554
3
rugp. 15
3419
2
liep. 15
5105
0
kov. 15
4126
1
kov. 15
3234