Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
5797 Prikazi

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
Opusti
Best Answer

Refer the LInk may be help you.

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
dec. 17
7620
2
nov. 16
6419
1
sep. 15
5078
3
avg. 15
9221
1
jul. 15
8623