JavaScript/Firebase/FormSubmissions

Hey, I’m trying to figure out a way to display a success message on a page that posts form submission data to a firebase function.

Firebase is running on express, so I can do…
res.send,
res.redirect,
res.end

Do I need to use some front-end code to preventDefault? Or is there a way for the response to let the page know to show a success message?