Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4393 Lượt xem

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>
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Try this,

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

Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

"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?

Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 12 18
14763
2
thg 3 23
4315
4
thg 12 23
18968
1
thg 7 25
2698
2
thg 5 24
3572