Help putting code into async and wait...

Please post the URL and explain how to see the problem.

BTW - It might have worked before, but connecting a Submit button to an onClick() function is incorrect and results in unexpected results.