I have an edit drop/down button to edit "Module Map template". Once clicked the flow: "Draft" is called. But also upon creating a new Module Map Template the status will be "Draft" and same flow will be called. Once flow is called a "Cancel" button appears. My scenario is that I need two different Cancel buttons performing different actions: upon creating new template / or edit Structure template. Any Idea? Note that when pressing on "Edit structure" the harness is not in edit mode to use this as a unique identifier.
***Updated by moderator: Lochan to add Categories***
I am finding it hard to check the visibility condition. Since both "Edit Module Map" and "Create Module Map" will call the "Cancel" button so for the button to perform two different actions we need one unique visiblity condition this is what I am searching for. Note also that both call the same "X" flow action with "Edit Module Map" being related to "Edit Module Map" smart shape inside the "X" flow action. Any idea if this visiblity rule can be eg. FlowAction.SmarshapeName or any other thoughts?