Hi,
I'm tryng to add a condition to custom field.
I added this:
($(tipologia-partenza) eq 2)
But it does not work because I need to set the field "tipologia-partenza" as raw value.
How can I do?
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Domenico,
This is for the views conditional correct?
Is this the entire conditional statement ? or is this the conditional statement used in the Field Groups section.
Please clarify for me Also what kind of field is the "tipologia-partenza", could you send me a screenshot of the field structure in the edit field group page?
Thanks,
Shane
Hi Shane, no it is for custom field conditional display.
If I use the code as sent it does not work because the value returned is a sentence "Partenza a scelta del cliente" as you can see in immagine2.
I need to "transform" it in raw value (2).
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Domenico,
This should work fine since the value of the field is what will be returned in the conditional, so having
($(tipologia-partenza) eq 2) is correct.
If it doesn't work then that is quite strange as I just test this with a select field as well. See Screenshots.
Would it be possible to gain access to the site to view this for you ?
Thanks,
Shane