# How to trigger an action in Thunkable App when the WebViewer returns an alert message

**URL:** https://community.thunkable.com/t/how-to-trigger-an-action-in-thunkable-app-when-the-webviewer-returns-an-alert-message/2197740
**Category:** Questions about Thunkable X
**Created:** [December 30, 2022, 11:47am UTC](https://community.thunkable.com/t/how-to-trigger-an-action-in-thunkable-app-when-the-webviewer-returns-an-alert-message/2197740 "2022-12-30T11:47:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![varunkadapatti](https://avatars.discourse-cdn.com/v4/letter/v/eb8c5e/32.png) [@varunkadapatti](https://community.thunkable.com/u/varunkadapatti)
#### Post date: [December 30, 2022, 11:47am UTC](https://community.thunkable.com/t/how-to-trigger-an-action-in-thunkable-app-when-the-webviewer-returns-an-alert-message/2197740/1 "2022-12-30T11:47:35Z")

</div>

Hello.  
In my app, i am using the cloudinary upload widget to upload files to the cloud. But i also want to collect the user’s data and then allow the user to upload files…

My question is that when the user uploads a file and the Web Viewer returns an alert, how do i make thunkable send the user’s data also to the Airtable database?

This is the alert code i’m using in the HTML file:

```auto
function(error, result) {
  
                if (result.event === "success") {
                    alert("✅ Files were uploaded successfully! You may leave this screen.");
                  
                    myUploadWidget.close();
                }
            });

```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [March 30, 2023, 11:47am UTC](https://community.thunkable.com/t/how-to-trigger-an-action-in-thunkable-app-when-the-webviewer-returns-an-alert-message/2197740/2 "2023-03-30T11:47:37Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
