HTML5 Data Bindings Formatter Support Product Page

Answered

Data-bindings-show with multiple arguments

Asked 07 Nov 2014 10:50:05
1
has this question
07 Nov 2014 10:50:05 Dik Hendriks posted:
Is it possible to implement a Data-bindings-show (or hide) with arguments on 2 different database fields?

Replies

Replied 07 Nov 2014 10:54:30
07 Nov 2014 10:54:30 Teodor Kuduschiev replied:
Hi Dik,
Can you please be a little more detailed? What exactly do you need to achieve?
Replied 07 Nov 2014 11:28:26
07 Nov 2014 11:28:26 Dik Hendriks replied:
Hello Theodor,

I have a div which i want to hide or show based on two arguments and two database fields;

fieldA = ‘argument1' and fieldB = 'argument 2'

(data-binding-show=“{{fieldA == "ja"}}” and data-binding-show=“{{fieldB == "L"}}”

both argument must be valid in order to show the div.

With regards, Dik Hendriks
Replied 07 Nov 2014 11:38:26
07 Nov 2014 11:38:26 Teodor Kuduschiev replied:
Your code should be:

 data-binding-show="{{fieldA == 'argument1' &&  fieldB == 'argument2'}}"

Replied 07 Nov 2014 11:44:22
07 Nov 2014 11:44:22 Dik Hendriks replied:
Works great! Thanx

Reply to this topic