Bubble.io Beginners - How to create a new database entry
In this Bubble tutorial for beginners we explain how you can create new entries in your Bubble database using a form. We use the Create new thing workflow action to create a new contact using 2 input fields.
Save data like a pro: Learn how to create new database entries in Bubble without breaking a sweat!
Master form submissions: Discover the secret to linking your input fields directly to your database fields.
Streamline your app flow: Unlock the power of the Go to Page action to enhance user experience after form submission.
Creating a New Contact in Bubble.io
In this Bubble tutorial video, I'm going to show you one way that you can save data to your database from your design. We've got a form here and this is going to create a contact and if I show you my data tab, I've already got a data type called contacts. So how do I save name and email address and create a new contact?
Introduction to Planet No Code
But before I launch into that, if you're new to Bubble or even if you've been using Bubble for months, we are Planet No Code and we've got a website, planetnodecode.com where you can find Bubble tutorial videos that you cannot find on YouTube. We've got amazing tutorials exclusive to our members only available at planetnodecode.com.
Creating a Workflow to Save Data
Let's get back to this. How do we save it? So we have a button and we have two fields and I'm going to add a workflow to the button. So I click on the button and I click add workflow and that takes me into the workflow tab and it sets up a workflow for when button create is clicked. I can now do a series of actions and the action that I want to take is data create a new thing and then I choose from my data types that I've already got and this time I'm choosing contacts.
Linking Form Inputs to Database Fields
And then I find the field. So I have name and I have email and now I need to link my form, my inputs in the design tab to the fields here saying that name equals and so I find my input name. And it's value and I find my input email address and it's value.
Testing the Workflow
Let's preview that. So let's put in a name and we'll put in an email address. And I click create and hopefully if we go into data. We'll see that a new record has been created for Tony with email address Tony at Stark.com.
Conclusion and Next Steps
So that's how you do it. That's a really simple way of saving data to your database. A next step would be most people if you are taking your user to a form and you want them filling that in and then you want to take them back you would add in a go to page. And say taken back to your index page or your dashboard page so that when they've completed the form as you saw when I just did it you're stuck. You want to change that you want to move them on to your next page keep the flow going in your app.
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Flexible Pricing Plans to Fit Your No-Code Journey
Choose the plan that aligns with your goals and start building your startup today.
Have questions?
We have answers!
Find answers to common questions about our membership plans, programs, and more.
Both plans offer full access to our learning resources, community, and support. The Annual plan provides a significant discount (over 15%) compared to paying monthly, and it allows you to lock in your rate for a full year.
Absolutely! You can easily upgrade or downgrade your membership plan at any time by logging into your account and selecting the desired plan. Any unused portion of your current plan will be prorated and applied to your new plan.
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.
If you decide that Planet No Code isn't the right fit for you, you can cancel your membership at any time by logging into your account and navigating to the subscription management page. Click the "Cancel Membership" button, and your membership will be terminated at the end of your current billing cycle.