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?

  • Jul 10, 2024 12:27 AM UTC
  • 4 replies
  • 32 views
  • Translate All

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.

Translate

Forum|alt.badge.img+3

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

Translate

Forum|alt.badge.img+13

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

Translate

Forum|alt.badge.img+3

Thank. I’ve got everything working.

Translate