Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5854 Представления

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?

 

 

Аватар
Отменить
Лучший ответ

Refer the LInk may be help you.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
дек. 17
7679
2
нояб. 16
6488
1
сент. 15
5151
3
авг. 15
9294
1
июл. 15
8691