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

Hi everyone,


After using the following code it renders the fields invisible but the label is still attached.

Then using the xpath label invisible, it says label does not exist. 

I am trying to restructure the contacts form to better suit my companies flow. How can I remove these line?

<xpath expr="//field[@name='website']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='email']" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
<xpath expr="//field[@name='mobile']" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>




label

<xpath expr="//label[@name='mobile']" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Try this,

<xpath expr="//label[@for='mobile']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>

Thanks

อวตาร
ละทิ้ง
ผู้เขียน

"Element '<xpath expr="//label[@for='mobile']">' cannot be located in parent view

it is a selection and label within the phone widget is this the issue?

Related Posts ตอบกลับ มุมมอง กิจกรรม
Adding fields to res partner form แก้ไขแล้ว
4
ธ.ค. 18
14734
2
มี.ค. 23
4288
4
ธ.ค. 23
18942
1
ก.ค. 25
2681
2
พ.ค. 24
3548