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

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?

 

 

Portretas
Atmesti
Best Answer

Refer the LInk may be help you.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
gruod. 17
7777
2
lapkr. 16
6619
1
rugs. 15
5255
3
rugp. 15
9456
1
liep. 15
8807