DMXzone App Connect Support Product Page
Answered
OR condition
Asked 5 years ago
1
has this question
5 years ago 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"

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 5 years ago
5 years ago Teodor Kuduschiev replied:
Hello,
The syntax is wrong indeed, it must be:
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 5 years ago
5 years ago Jean Luc Mezzapelle replied:
Hi Teodor,
It is perfect !!!
Thank you for your quick answer !
Jean-Luc
It is perfect !!!
Thank you for your quick answer !
Jean-Luc