Help putting code into async and wait...

From what I understand, you have the Submit button connected to a dataset submit action. And, you also have an onClick() event handler connected to that same Submit button.

So, what happens is that the onClick() function “overrides” the dataset submit action. So, what happens is is that the onClick() function executes, but the dataset submit action does not get executed.

What I don’t understand is how this is related to async and await .

Please explain what it is you’re trying to accomplish. What works, what doesn’t, and show the relevant code in a code block.