Global workflow on new alert (dialog) element not working using a global workflow

Hi there,

Before when using the deprecated alert element, we could toggle the alert using a global variable, that was set via a global workflow.

With the new dialog component we need to use a component workflow to toggle the alert. This works initially using a global workflow, but when we copy the the alert component to another page, the global workflow is broken, because it can’t find the component to execute the component workflow for.

Another flaw in my opnion, is that the new alert element (dialog) has no feature to auto hide, We now need te create an workflow with a delay to close it.

Any thoughts on this?

How can we now create a global alert function using the new dialog Alert element, by just trigger the global workflow on any page we want to use it?

As workaround we now abandoned the use of the alert (dialog) component and rebuild the alert from scratc.

We are basically mimicking the deprecated variant of the alert component. Now we are able to use a global workflow for request succes/error handling.

Would be nice to be able to do this with the new alert (dialog) component.

This has been an issue with execute component actions in general for awhile. Components on a different page are technically “different components” so the same workflow in the global workflow doesn’t actually find the correct component.

We’ve got around this with a less than ideal solution but it does work. You need the global workflow to check the current page it’s on then have a multi option action and use condition to check the currentPage then go to each page you need it on and add a new execute component action to that options branch

1 Like