Skip to main content

Update Current Logged in User Data

Intro

This enhancement empowers users to maintain accurate and secure personal data with ease, ensuring a seamless experience within our platform. Update your details hassle-free and stay in control of your account information effortlessly.

With this video tutorial you will learn to create an event to update current logged-in user data such as their email and password etc. into your app project in a quick and easy manner.

1. Create an Event to Update Current Logged-in User

To update use data you will have to create an event in order to trigger them. For this go to Events and click Add Event. Give a name to your event.

DrapCode Builder Create New Record

1.1 Configure the Event

Then choose Collection and set it to Update Current Loggedin User

DrapCode Builder Create New Record

1.2 Add Event Details

Then add a unqiue display message if you prefer and Save your changes.

DrapCode Builder Create New Record

2. Bind the Event

Go to Components and drop a Collection Form. Open its Settings and bind the collection and the you created from the dropdown and Save your changes.

DrapCode Builder Create New Record

3. Create a Record to Test the Event

Click the Preview option and open the display page. Create a new record and Submit. This record will reflect in your collection when you refresh it.

The purpose of this step is to view the fields of the User, update the User, and then refresh via an event to observe the corresponding changes or modifications in the User data.

DrapCode Builder Create New Record

4. Preview the Browser Session

Click the Preview option and open the display page. Create a new record and Submit. This record will reflect in your collection when you refresh it.

Right-click Inspect element and you can find the details of the newly created record here.

DrapCode Builder Create New Record

Conclusion

This streamlined process ensures users can easily maintain accurate and secure data, enhancing overall account management efficiency.