Am I at a stage or action

I remember seeing the answer to this somewhere on the forums - but I'm unable to locate it now :(

 

How do I know in code, if I'm on a stage or action . Basically I have something I need to conditionally display at a stage but not at an action.

 

Thanks

Tagged:

Comments

  • One workaround i can think of is using a checkbox variable - set it true on "when action started" and false on "when action completed" and use that to drive visibility. Would this work or is there a way to do this using something like Stage.Name or Todo list "

  • %Action.Name is populated with a value when the folder is open at an action.

     

    You could try

     

    1) Adding a read-only text field on the form with a calculation formula of "%Action.Name"

    2) Make the field you want to display for the action dependent upon the field above

     

    The only drawback would occur if the folder is locked and another user attempts to view the form. But you could probably make the calculation formula take that into account.

  • The correct value to check is %User.Form

  • User.Form works perfectly.