Skip to Content
Menú
This question has been flagged
1 Respondre
4132 Vistes

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>
Avatar
Descartar
Best Answer

Hi,

Try this,

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

Thanks

Avatar
Descartar
Autor

"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 Respostes Vistes Activitat
4
de des. 18
14317
2
de març 23
3803
4
de des. 23
18493
1
de jul. 25
2343
2
de maig 24
3080