DMXzone App Connect Support Product Page

Answered

OR condition

Asked 21 Feb 2020 09:31:42
1
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="infosAdh.data.query1[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

Jean-Luc

Replies

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


dmx-show="infosAdh.data.query1[0].asso.contains("59M") || infosAdh.data.query1[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 !

Jean-Luc

Reply to this topic