I have a trigger on a container (dev) that initiates a 10-step workflow. The DIV container contains my search field and submit button. Is there a way to change it so that the workflow starts when the submit button is clicked? i thought it was best practice to put the workflow on the container, which is why I set it up that way. thanks!
Sounds like you are really close, @nocodedevs
Instead of a regular container, you just need to place the search and submit button into a form container, then add the workflows to the form container.
Ah! That makes sense. Is there a way to save the workflow or will I need to rebuild it ?
Amazing, not entirely sure how i missed this tbh!
For future reference, in Data > Workflows, you can set up global workflows that you can re-use throughout your application.
In this tutorial, we created a global workflow to let users upvote a feature.
You can learn more about WeWeb workflows here.
You’re not the only one!
We have it in mind to improve the user experience for this ![]()
The problem that I am having now is that I can’t seem to access the “search field” in my workflow when I switched the div to a form container – any ideas? @Joyce @kevinwasie @kyanaloe
Hi @nocodedevs ![]()
When you add a Search bar element, it automatically creates a Variable:
Uploading: CleanShot 2022-06-02 at 15.44.59@2x.png…
It looks like you deleted a couple of elements related to the Search bar element.
I dragged and dropped a new search element on your page, you can see it contains 3 items:
Search barButtonText input
In your case the Search bar had been deleted.
Does that help?
that did it, thanks Joyce ![]()




