With bricks/form/success we can catch the successful form submit event and do anything after that. There are other events as well here is the list on bricks docs.
here some examples how can be used;
<script> document.addEventListener('bricks/form/success', function(event) { // 1. Log a message to the console. console.log("Bricks form submitted successfully!"); // 2. Display an alert to notify the user. alert("Your form has been successfully submitted!"); // 3. Open a new tab with the specified URL. window.open('https://sinanisler.com', '_blank'); // 4. Update a variable to record the submission status. let submissionStatus = "success"; console.log("Submission status is now:", submissionStatus); // ...etc...etc }); </script>