I use the example, and I keep getting the error message, "Expected end".

Are there any other ways to provide a confirmation screen?