Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4350 Weergaven

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
Annuleer
Beste antwoord

Hi,

Try this,

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

Thanks

Avatar
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
4
dec. 18
14706
2
mrt. 23
4240
4
dec. 23
18910
1
jul. 25
2640
2
mei 24
3492