How to do a pop-up

I need that when clicking a button, a pop-up appears with other data for manipulation

Depends.

But what i mostly do, is creating a variable as Object.

The Workflow from your Button will store all the information you need in your variable, then you can use the variable for further steps.

But you need to be more specific to be honest, like what exactly you are trying to do?

I need to create a page to register users, but this page has to appear in the form of a pop-up!
When you click on a ‘register employee’ button, it should show this pop-up with the fields for registration

You can use a modal.

After that, click on your button for registration and go to workflow and make a change variable to the one that you set for making your modal showing (Boolean). Like the modal display is false and your button will change to true.

In the modal you can make any form you want.

But what backend are you using? Because the processing data will be the problem.

As well you should consider roles.

1 Like

I’m using Supabase as a backend…

Could you make a video showing how to do it? If possible it would be amazing

Sorry, not today.
I can do tomorrow, not at computer now.
But you get the data from supabase?

1 Like

Hi @GSr

You need to look for an element called “Modal” (this is the name given to the WeWeb “popup”).

In this Modal, you will create the form with the fields to be filled in by the user.

To create the form, it is interesting to use the “Form Container” element and place all the inputs and action buttons inside it.

The button to save the registration must contain a workflow registering this data in Supabase and then closing the Modal (if you came from Bubble, it is the same process).

By default, Modal already asks you to create a Boolean variable to identify whether the modal will be displayed or not. Use it in your workflow.

Best Regards,
:brazil:

PS: are you Brazilian?

1 Like

@felipegranado, obrigado pela ajuda! muito bem explicada…

sim! sou do Brasil :grinning:

1 Like