Creating a signup & login widget with a dropdown menu
In this Bubble.io tutorial we demonstrate how to create a dropdown login and registration menu using the Group Focus element in our Bubble app's header.
Create a drop-down login: Learn how to build a sleek header with login and signup functionality using group focus in Bubble.
Master responsive design: Discover techniques for creating a responsive registration form that adapts seamlessly to different screen sizes.
Streamline user authentication: Implement efficient workflows for signup, login, and hiding elements to enhance your app's user experience.
Creating a Dropdown Login and Registration Form
Here's how to create a drop-down login and registration form as part of the header on your Bubble app. So here's my Bubble app as it's coming along and I have a login and a sign-up button at the top here. So we do this by using a group focus container and a group focus has to be attached to another element so this is going to be my attached to sign-up and I then need to apply a slight negative offset and I can click in the box and just use the arrow keys on my keyboard to finally adjust it. So that's in line and looking neat and then let's give it a few down from the top. Perfect!
Adding Input Fields for Registration
Let's now put in some fields so I need to have an email and passwords the bare minimum I need for a registration or sign-up form. So I'm using the new responsive engine this is going to be using columns. Let's add in a little bit of padding all around the side just to neaten up. Make this 100% width. Some of these principles are just part of building your app with responsiveness in mind. Then let's put in some spacing in between and go on to our input.
Setting Up Email and Password Fields
So this is going to be of type email that's just so that Bubble can validate whether it is indeed an email that's been entered there. We also need to make sure this can't be empty as it's an essential part of our form and then we have password also I've just copied and pasted it so that's also not empty. We'll just change the placeholders so it's really clear when we're testing it. Okay and then last thing we do is we need to have a button. Again just setting it up so that it will be easily responsive in the future. This is going to say register.
Creating the Registration Workflow
Okay now let's work on our workflow. So when register is clicked we go into account and we sign the user up and we just match up the fields. I've got a couple of ones called email. I think that's because okay yeah so from a previous demonstration I check out that video I've got how to do as a pop-up. I'm going to delete that for now because it's just creating some confusion. So I've got two email fields labeled the same so let's go back here and input email input password. Okay if you want to add any other fields like first name you would do so here but I'm not planning to do that and then let's go and see what it looks like on the front end.
Implementing the Registration Workflow
Okay and nothing happens. I need to have a workflow for when the button is clicked. So sign up is then going to element actions show. This is where I should have labeled things to begin with. Call this registration. Now I can find it much more easily in here. Group focus registration. Right now we should have something we can test. So click sign up there it is. So let's go. I think I might need to make that unique in case I've tested with this before and register.
Testing the Registration Process
Okay now we saw that Bubble did something because the loading bar flashed across the top and I know from experience that I'm now logged in and I even have it on this page from a previous demo a way to test that and you might have noticed it. I've got this piece of text here saying current user is logged in and if you rewind the video 10 seconds you'll notice that when the registration process, remove that, when the registration process completes this changes from no to yes because I am now logged in. Now there's one other thing we could do to make that a really good experience which would be when register is clicked to hide the group focus otherwise it's just going to stay there.
Creating the Login Workflow
Okay right now let's work on login. So I'm just going to copy and paste my registration one and name that as login. Okay and because I want it to appear in the same place I'm going to have it so that it's still attached the reference element is sign up. Let's just hide registration so I'm not confused. Okay right so now we have login so let's rename this and because I copied and pasted it using a keyboard shortcut the workflows are not intact if you want to copy and paste will workflow you have to use the built-in edit button in Bubble yeah copy with workflow.
Finalizing the Login Workflow
So here I would go to account, sign the user up, email address. Alright now I have created for myself multiple fields so I'm going to rename this to login so as to not get confused. There we go matching up the fields and let's add in a similar step from last time of hiding the group focus. Okay so now if we need a show we need a show of course so let's go back into login here we go element show group focus login. Let's test that again.
Get the Complete Bundle for Just $99
Access 3 courses, 390+ tutorials, and a vibrant community to support every step of your app-building journey.
Start building with total confidence
No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.
Find every solution in one place
No more searching across platforms for tutorials. Our bundle has everything you need, with 390+ videos covering every feature and technique.
Dive deep into every detail
Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.
Save over 70%!
Valued at $80
Valued at $85
Valued at $30
Valued at $110
Valued at $45
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Have questions?
We have answers!
Find answers to common questions about our membership plans, programs, and more.
We're here to help you launch your no code SaaS. Reach out to the team and we'll double check our vast library for useful content. We'll advise you on how we'd tackle the same problem and there's a good chance we'll record the video to help the wider community.
As a Planet No Code member, you'll receive a discount on our Bubble coaching sessions. Monthly members receive a 10% discount, while Annual members receive a 17.5% discount. To redeem your discount, simply log into your account and book a coaching session through our platform.
Our 8-week intensive mentorship program is designed to provide personalized guidance and support to help you accelerate your startup journey. You'll be matched with a startup expert who will work with you one-on-one to set goals, overcome challenges, and make rapid progress.
To apply for the Mastery Program, simply click the "Request Invitation" button on our pricing page and fill out the application form. Our team will review your application and schedule a call with you to discuss your goals and determine if the program is a good fit for your needs.
We accept all major credit cards, including Visa, Mastercard, American Express, and Discover.
While we don't offer a free trial, we do provide a 14-day money-back guarantee. If you're not completely satisfied with your membership within the first 14 days, simply contact our support team, and we'll issue a full refund.