Skip to main content
Participant
March 15, 2019
Question

Do an action using the state of an object on Captivate

  • March 15, 2019
  • 1 reply
  • 730 views

Good Morning everyone,

I'm trying to create an action based on the status of an object: for example "IF the status of this object is A, then do this action". Do anyone know how (and if) is it possible to do this? I'm trying with conditional actions, but I don't know how to indicate the object status in the IF panel.

Thank you for the help

    This topic has been closed for replies.

    1 reply

    Inspiring
    March 15, 2019

    That would require some JavaScript, as there's no System Variable that carries an object's current state. This forum post might help:

    Is there a way to poll the current state of an object for use elsewhere?

    Anyway, it might be worth considering to intercept the events that change the state in the first place, and track those changes in a tracking variable of some sort instead.

    RodWard
    Community Expert
    Community Expert
    March 15, 2019

    Or you could just do this with vanilla Captivate functionality by having a User Variable keep track of the object's state.  You just need to ensure that your Actions always assign the variable to have a value that corresponds exactly with the state of the object so that as the object's state is changed, so does the variable value.  You cannot currently check Object State in the decision block of a Conditional Action, and that's why you need to use the User Variable.