Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87158

Re: Having trouble with if else when used with event.value... please help

$
0
0

This is not a valid construction:

if (this.getField("SubBrand").value == "Adventure" || "Liquid" || "Silver")

 

You need to use something like this:

var subBrand = this.getField("SubBrand").value;

if (subBrand == "Adventure" || subBrand == "Liquid" || subBrand == "Silver")


Viewing all articles
Browse latest Browse all 87158

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>