HTML5 Data Bindings Support Product Page

Answered

How do I only show values of not empty date fields?

Asked 25 Mar 2014 10:29:25
1
has this question
25 Mar 2014 10:29:25 Andre Bender posted:
I want to show birthday dates only if the value is not "0000-00-00". How can I do this?

<span data-binding-show="{{Geburtsdatum}}">Geburtsdatum:&nbsp;&nbsp;{{Geburtsdatum.formatDate( "dd.MM.yyyy" )}}</span>

Doesn't work. Thanks for any help.

Replies

Replied 25 Mar 2014 11:13:36
25 Mar 2014 11:13:36 Teodor Kuduschiev replied:
Hello,
The data-bindings-show is a boolean check. When this is a string try using: {{Geburtsdatum != '0000-00-00'}}
Replied 25 Mar 2014 13:37:43
25 Mar 2014 13:37:43 Andre Bender replied:
Hi Teodor.

Thanks, work like a charm!

Reply to this topic