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
5783 Zobrazení

There is no way for me to hide a field in the method fields_view_get, I tried all the possible ways to set invisible to the field, none of them worked (attrs, modifiers, invisible directly, invisible inside the tag.)

            for node in doc.xpath("//field[starts-with(@name, 'module_')]"):
                node.set('invisible', '1')  //don't work
                node.set('attrs', '{"invisible": 1 }') //don't work

What is my mistake here?

 

 

Avatar
Zrušit
Nejlepší odpověď

Refer the LInk may be help you.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 17
7605
2
lis 16
6407
1
zář 15
5056
3
srp 15
9184
1
čvc 15
8618