跳至内容
菜单
此问题已终结

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?

相关帖文 回复 查看 活动
4
12月 18
14678
2
3月 23
4197
4
12月 23
18844
1
7月 25
2602
2
5月 24
3427