Marc Philippe Beaujean
Posted on December 29, 2019
I keep finding myself rewritting the same ol' submission logic for each form, with slight changes depending on the contents - however, each time, I write my logic into a separate script that looks really similar to the previous. Something along these lines:
- Disable the submission button
- Check and validate all the inputs
- Dispatch a post request
- Display the server errors if there was mistake,otherwise redirect/create a notification
Anyone able to help me out by sharing their solutions? Form submission patterns or frameworks to help me keep this a bit more dry are much appreciated 😄
💖 💪 🙅 🚩
Marc Philippe Beaujean
Posted on December 29, 2019
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
undefined JavaScript and SaaS: The Dynamic Duo Behind Scalable and Interactive Applications
November 17, 2024