Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
6237 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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)"/>

 

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
srp 18
3548
3
srp 15
3414
2
čvc 15
5090
0
bře 15
4120
1
bře 15
3232