# Using callback to update a user field

**URL:** <https://community.noloco.io/t/using-callback-to-update-a-user-field/1336>\
**Category:** Ask for Help\
**Created:** [October 16, 2024, 10:20am UTC](https://community.noloco.io/t/using-callback-to-update-a-user-field/1336 "2024-10-16T10:20:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukebranford](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/lukebranford/32/32_2.png) [@lukebranford](https://community.noloco.io/u/lukebranford)\
**Post date:** [October 16, 2024, 10:20am UTC](https://community.noloco.io/t/using-callback-to-update-a-user-field/1336/1 "2024-10-16T10:20:32Z")

</div>

I’m using Gleap for bug reporting, help articles etc (very cool tool if people haven’t tried it). They also have a handy Product Tour which I’m going to implement. When a user has completed the tour, it sends a callback:

Gleap.on(“productTourCompleted”, (data) =\> {  
console.log(data);  
});

Would there by anyway using the custom code to update a user record so that I can mark that they’ve completed the tour?

Use case: I want to include some demo content for the tour, but then hide this when they have completed.

A steer in the right direction would be great, sure I’ll figure out the rest! Thanks 🙂

---

<div class="post-metadata">

**Author:** ![lukebranford](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/lukebranford/32/32_2.png) [@lukebranford](https://community.noloco.io/u/lukebranford)\
**Post date:** [October 16, 2024, 6:38pm UTC](https://community.noloco.io/t/using-callback-to-update-a-user-field/1336/2 "2024-10-16T18:38:08Z")

</div>

Update: I wasn’t sure how to update a record directly in Noloco, but I am able to hit my Xano API and update the record, so that’s a step forward!

---

<div class="post-metadata">

**Author:** ![darragh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/darragh/32/12_2.png) [@darragh](https://community.noloco.io/u/darragh)\
**Post date:** [October 21, 2024, 7:29am UTC](https://community.noloco.io/t/using-callback-to-update-a-user-field/1336/3 "2024-10-21T07:29:10Z")

</div>

Makes sense @lukebranford

The only other way would be to make an API request directly to the Noloco API, this way it would be authenticated as the current user too (if you used their tokens)

---

<div class="post-metadata">

**Author:** ![lukebranford](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/lukebranford/32/32_2.png) [@lukebranford](https://community.noloco.io/u/lukebranford)\
**Post date:** [October 21, 2024, 8:18am UTC](https://community.noloco.io/t/using-callback-to-update-a-user-field/1336/4 "2024-10-21T08:18:00Z")

</div>

Ah, good shout regarding using the Noloco API, I will try that as right now there’s a short delay whilst it syncs back. Thanks!

---

<div class="post-metadata">

**Author:** ![Kieran](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/kieran/32/91_2.png) [@Kieran](https://community.noloco.io/u/Kieran)\
**Post date:** [December 3, 2024, 7:36am UTC](https://community.noloco.io/t/using-callback-to-update-a-user-field/1336/5 "2024-12-03T07:36:44Z")

</div>

Hey @lukebranford did you have any luck with this ?
