How do I show success message after submit and route to a url

You’ll have to provide more details. “It is not working” doesn’t give us much to go on.

The best thing is to make a minimal reproducible example, as is described here: