Hello WeWeb Community!
I’m currently building a multi-step form in WeWeb and want to utilize WeWeb AI as much as possible to streamline the process. However, I’m facing challenges in structuring the form properly and setting up the necessary workflows. Here’s what I need help with:
What I’m Trying to Achieve:
- A multi-step form where users fill in business-related details step by step.
- Navigation buttons (“Next” and “Previous”) that allow smooth transitions between steps.
- Conditional logic (e.g., if a user selects “Other” in a dropdown, an extra text field appears).
- Saving progress so users don’t lose data if they refresh the page.
Current Challenges:
How do I instruct WeWeb AI to generate a multi-step form?
- I tried prompting the AI with step-by-step instructions, but it sometimes gets stuck or doesn’t structure the form correctly.
- Should I generate each step separately and then manually connect them?
How should I structure the form’s containers and sections?
- Should each step be a separate container inside one main form container?
- Or should I create separate pages and navigate between them?
How do I properly set up workflows for Next/Previous buttons?
- Should I use Component Variables or Global Variables to track progress?
- What’s the best way to show/hide form sections dynamically?
Any best practices for handling form submission and validation?
- Should I store form responses in WeWeb’s local state first and send everything to the backend at the end?
- Or is it better to update the database (Supabase) after each step?
Additional Context:
- I’m using WeWeb + Supabase for authentication and data storage.
- This form will be part of a user onboarding process where they configure an AI-powered phone assistant for their business.
- I want the form to be user-friendly and responsive on all devices.
If anyone has experience setting up multi-step forms in WeWeb (especially using AI and workflows), I’d really appreciate your guidance! Any best practices, tutorial links, or step-by-step instructions would be a huge help.
Thanks in advance!