I have a behavior script that works to make a field required based off of the value in another field. But I need to include and AND condition and a NOT EQUALS condition.
Initialiser = Launch type
IF Launch Type = A
AND Field Value != Z
then require field X
Here is my server side script, but how do I include an AND/NOT EQUALS condition?
if (launchtypeField.getValue() == "Affiliate-New")
AND (NetworksField.getValue() !== "JP")
{
affiliateMIDField.setRequired(true)
affiliateMIDField.setHelpText("Please provide the Affiliate MID for this client")
}
else {
affiliateMIDField.setRequired(false)
affiliateMIDField.clearHelpText()
I cannot find a statement that works.
Please help