Hi- Is there a way to trigger a workflow when a link is clicked?
I dontât think so. Thatâs why the Start/Edit workflow is not visible. hat you can try is create your workflow based on a text element clicked, and then turn this text element in a link. The attached workflow should remain. It was a kind of a bug I had before, if it still works.
Yea- my issue is that I need an element that, when clicked, opens a new tab. That feature is only available with links.
But I need to track my userâs clicks via a workflow & that is not available for links.
Ideas for a work-around?
Why would you need to have a workflow run on a link? Just use a text then? Technically a link is a different element, where users can right click and open in a new tab, you only want to use this for actual links, not workflows.
are there any other elements that will open a new tab?
No, only links can do this. Other attempts are blocked by anti-popup stuff. Sadly a browser limitation (and a consequence of the nasty popups for the early 2000s)
Okay, so I have a repeating group of artwork images. When someone clicks, I want to send them to an external site where the art came from. Itâs important that I open this external site in a new tab so users can come back to my site. But itâs also important to track which artwork they liked, clicked. How do you recommend I do that?
@twr2105, Did you find a workaround to be able to track or record the links your users click? Did you find a way to access links in the workflow?
R.G.
I found this out on accident: if you set up the workflows on a button element, then convert that button to a link - the workflows will stay attached to the link. In my app, there was only one action which happened on click - so Iâm not sure if this would work for all cases (or if itâs the best idea). But it did âworkâ for me.
Right-click the button and then select âReplace by another elementâ then select Link. If you check the workflows it should change from âWhen Button is clickedâ to âWhen link is clickedâ
Perfect! Thank you Faye!
great hack!
this tips not working. how i can do ? thanks
yes its works after i read this postâŚ
https://forum.bubble.io/t/can-i-trigger-workflow-on-link-element/24892/3
This does still work. I found it by a happy accident yesterday. @emmanuel, you were asking about a use case for this. In my case, I have a link that is a phone number. I built a dialing application for my employees. However, I wanted to keep a count, so every time someone dialed a call, it would increase the userâs call count by 1.
The link element links to tel:current cellâs customerâs phone.
So, when the user clicks the link it loads the phone number into Skype. But, since I couldnât launch a workflow off the link, I had to create some other way to increase the call counter.
Works like a charm, love this hack!