Workflows are limited for reusable elements

Hi,

I’m trying to create a workflow to show a popup when an icon is clicked. This works fine when I just use an independent icon. But when I try to do it by creating an icon as a reusable element the workflow is limited. See possible options of “elements” below. The first picture is when I use an independent icon and the second when I try to create a reusable element. Why is this happening?

The first image is from the page, so you can refer to any element on the page…

I’m assuming the second image from the editor for the reusable element?

In which case there are no other elements to refer to (the material icon must be the only element in the reusable element).

@adamhholmes that is correct. Are you saying I need to build the popup I want to display within the reusable element itself? I thought I could just refer to any popup I have already created…

Not necessarily…

You could just run the workflow on the page when the reusable element is clicked.

@adamhholmes how do I do that though? From the picture below it seems like I can’t set a workflow from the reusable element when it is on the page… The “start/edit workflow” button is gone,

You’re right, turns out you can’t run workflows on click of a reusable element…

Your best bet will be to do it with custom states then…

Put a custom state (such as a yes/no) on the reusable element itself, and set it (to yes) when the icon is clicked…

Then run a ‘when condition is true’ workflow on the page based on the custom state value (e.g. when the custom state value is yes).

Thanks I’ll try that!

This topic was automatically closed after 14 days. New replies are no longer allowed.