HTML5 Data Bindings Formatter Support Product Page

Answered

Show element based on Data Value

Asked 17 Dec 2013 00:00:17
1
has this question
17 Dec 2013 00:00:17 Brad Lawryk posted:
I can show Hide elements if data exists no problem.

But what I need is to be able to show a page element only if the data matches a specific value.

For example; Say a value in the data can be either 'Yes', 'No' or 'null'. I need to be able to set a page element to only show if the value is 'Yes' and hide if it is not 'Yes'.

I can't figure out a way to do that?

Replies

Replied 17 Dec 2013 10:26:04
17 Dec 2013 10:26:04 Teodor Kuduschiev replied:
Hello Brad,

You can use classes in order to do this - for example on "Yes" assign a class "Visible" and on anything else assign a class "hidden". The classes can just add display:none/display:block to your element
This reply was removed on 8/6/2014 10:30:42 AM.
See the changelog
Replied 04 Feb 2016 17:50:44
04 Feb 2016 17:50:44 Brad Lawryk replied:
I think there used to be a video on how to do this? I can't seem to get this to work anymore.

Reply to this topic