DMXzone App Connect Support Product Page


OR condition

Asked 21 Feb 2020 09:31:42
has this question
21 Feb 2020 09:31:42 Jean Luc Mezzapelle posted:
In a form i'd like to hide or display an input field under 2 conditions. in order to do that i use the dynamic attributes "show" or "hide"
here is an example of the conditions : dmx-show="[0].asso.contains("59M" || "76&quot"
in my case, it only filter with the first condition.
i think it is a syntax problem. i did test severals things without success
can someone help me ?

thank you very much



Replied 21 Feb 2020 09:50:59
21 Feb 2020 09:50:59 Teodor Kuduschiev replied:
The syntax is wrong indeed, it must be:

dmx-show="[0].asso.contains("59M") ||[0].asso.contains("76")"

Replied 21 Feb 2020 09:59:32
21 Feb 2020 09:59:32 Jean Luc Mezzapelle replied:
Hi Teodor,

It is perfect !!!
Thank you for your quick answer !


Reply to this topic