Skip to main content
Nintex Community Menu Bar
Question

Is there a way to query a model condition to see if it is or is not currently active?

  • July 10, 2024
  • 4 replies
  • 3 views

Forum|alt.badge.img+3

Is there a way to query a model condition to see if it is or is not currently active?  In something i am working on, I’d use the status of the condition to go down one of two paths in the logic.

This topic has been closed for replies.

4 replies

Forum|alt.badge.img+13

There is an inactive property on Model Conditions that will be false if a Condition is active, trueif it is inactive.


Forum|alt.badge.img+3

could you share the syntax used within an if statement in a snippet?


Forum|alt.badge.img+13

var model = skuid.$M(‘MyModel’);
var condition = model.getConditionByName(‘MyConditionName’,true);
var conditionIsActive = !condition.inactive;


Forum|alt.badge.img+3

Thank. I’ve got everything working.