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

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:

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