Skip to main content

To set Sub-Conditions, you need to include a 2nd argument in your call to getConditionByName():

var condition = model.getConditionByName(‘Status’,true);
model.setCondition(condition,‘Closed Won’);

See the docs on getConditionByName()


Hi Zach, I have a scenario where I want to just activate subcondition and not set value. How can I do that. I have subcondition whose value is in records (all records) from another model. 


Just don’t set it and only activate it.

var condition = model.getConditionByName(‘Status’,true);
model.activateCondition(condition);


Hi Pat, 

var condition = model.getConditionByName(‘Status’,true);
model.activateCondition(condition);

does not seem to work. 


Can you share the XML for the page?



Reply