Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5642 มุมมอง

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
7466
fields_view_get not being triggered แก้ไขแล้ว
2
พ.ย. 16
6187
New API style for fields_view_get? แก้ไขแล้ว
1
ก.ย. 15
4943
3
ส.ค. 15
8998
1
ก.ค. 15
8451