{"id":3842,"date":"2026-11-20T17:28:28","date_gmt":"2026-11-20T09:28:28","guid":{"rendered":"http:\/\/www.esifinland.com\/blog\/?p=3842"},"modified":"2026-11-20T17:28:28","modified_gmt":"2026-11-20T09:28:28","slug":"how-to-handle-form-submissions-in-relay-4aef-cbb319","status":"publish","type":"post","link":"http:\/\/www.esifinland.com\/blog\/2026\/11\/20\/how-to-handle-form-submissions-in-relay-4aef-cbb319\/","title":{"rendered":"How to handle form submissions in Relay?"},"content":{"rendered":"<p>Hey there, if you\u2019re working with Relay\u2014like I do, running a small but busy Relay supply operation for all kinds of businesses\u2014you\u2019ve probably found that form submissions can feel like the weird, glitchy part that no one really talks about. I\u2019ve been in this game for 6 years now, and I\u2019ve seen way too many teams mess this up: they submit a form to order Relay parts or request a quote, get stuck waiting forever, and then end up sending a follow-up email that says, \u201cHey, did my form even go through?\u201d That\u2019s the last thing I want our customers to deal with, and I\u2019m betting you feel the same if you\u2019re in this space too. <a href=\"https:\/\/www.jianxintechnical.com\/energy-meter-parts\/relay\/\">Relay<\/a><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.jianxintechnical.com\/uploads\/202336472\/small\/steel-gas-meterc9c7d633-268a-43c9-ae64-875d7991cbd5.jpg\"><\/p>\n<p>Today I\u2019m gonna walk through how to actually handle form submissions in Relay (whether you\u2019re a customer filling one out or someone like me making sure the backend works right). No jargon, no stuffy corporate talk\u2014just real tricks I\u2019ve picked up fixing these things myself, plus a few pro tips from the Relay dev crew I chat with. Let\u2019s cut to the chase.<\/p>\n<p>First, let\u2019s get clear on what a Relay form submission even is, because this isn\u2019t just a regular website contact form. For us, most form submissions fall into two buckets: customer-facing ones (like requesting a custom Relay build, ordering replacement motors, or asking about bulk pricing) and internal ones (like our warehouse team submitting stock counts for old Relay models). Either way, the core problem is the same: you click submit, something has to go from your screen to our servers, and come back with a \u201cgot it\u201d or an error fast.<\/p>\n<p>I used to think the easiest way was to just drop a form on our website, hook it up to a basic server, and call it a day. Big mistake. Last year we had a busy quarter\u2014we launched a new line of compact Relays\u2014and our form crashed because we didn\u2019t account for how fast people were filling it out. A hundred people submitted in 10 minutes, and half got error messages that said \u201ctimeout\u201d or \u201cserver overloaded.\u201d Oops. That\u2019s when I realized handling Relay form submissions isn\u2019t just about code\u2014it\u2019s about thinking like both the person filling out the form and the person on the other end receiving it.<\/p>\n<p>Let\u2019s start with the basics of building a form that actually works. First off: keep it short, but not too short. I\u2019ve seen forms with 12 fields just to request a quote for a $50 Relay part. Ridiculous. You need name, email, what Relay part or service you\u2019re asking about, and maybe a quick note. That\u2019s it. Any extra fields (like \u201ccompany size\u201d or \u201cpurchase history\u201d) should be optional, and hidden behind a \u201cmore info\u201d toggle. When we stripped our quote form down from 9 to 4 fields, submissions went up 30% and error rates dropped 40%\u2014no cap, that\u2019s actual numbers from our last software update.<\/p>\n<p>Next: give instant feedback, not just a \u201cloading\u201d spinner. Spinners are the worst because you never know if it\u2019s stuck or actually working. When someone clicks submit, our form does two things right away: first, it disables the submit button so they can\u2019t spam-click (that\u2019s a huge cause of duplicate submissions, by the way\u2014people click twice when the spinner won\u2019t go away), and second, it shows a small, non-intrusive message that says, \u201cSending your request\u2026 we\u2019ll be right back.\u201d No big popups, no blocking their screen. Once it goes through, it says, \u201cGot it! We\u2019ll reply in 2 hours max (our average) to your email.\u201d If it fails, it says, \u201cWhoops, that didn\u2019t work\u2014try clicking submit again, or email us directly at orders@[&#8230;].com.\u201d Clear, specific, no vague \u201cerror\u201d text.<\/p>\n<p>Now, let\u2019s talk about the backend stuff, because this is where as a Relay supplier, I\u2019ve had to do most of my learning (I\u2019m more of a hands-on fixer than a coding genius, so I\u2019ve tested a lot of janky workarounds). Relay form submissions aren\u2019t like regular form data\u2014some of them have heavy files attached, like photos of old Relay parts that need replacing, or diagrams for custom builds. If you just send that data as plain text, it\u2019ll get corrupted or stuck. We switched to using multipart\/form-data for all our submissions, and that cut down on bad data by 70% in the first month. It\u2019s not rocket science, but it\u2019s the kind of small detail that makes everything work.<\/p>\n<p>Another big one: rate limiting and duplicate checking. Like I said earlier, people spam-click when they\u2019re confused. We set a rate limit of 1 submission per minute per IP address, but we also built a tiny check that looks for identical submissions within 5 minutes. If someone submits the same quote request twice, it doesn\u2019t send two notifications to our team\u2014it just sends one and tells the user, \u201cWe noticed you submitted this twice\u2014we\u2019re still on it, no need to resend.\u201d That saved our team from sifting through 20 duplicate requests a day during busy periods.<\/p>\n<p>Now, what do you do if a form submission actually fails? I\u2019ve had this happen too: someone fills out a form, it times out, they close the tab, and we never get their request. That\u2019s lost business. We added two failsafes for this: first, we store a draft of every form submission on the user\u2019s device (using local storage, nothing fancy) for 7 days. If their submit fails, they get a message that says, \u201cWant to save your info for next time? We\u2019ve got it stored here.\u201d Second, every time our form fails, it sends a copy of the submission data to a separate backup email address automatically. Even if our main server is down, that backup inbox still gets the request. No more lost leads.<\/p>\n<p>Wait, and let\u2019s not forget about edge cases\u2014you know, the ones that pop up when you least expect them. Like, what if someone submits a form on a mobile device with bad service? We built a \u201csave for later\u201d button right into the form, so if they hit a dead zone, they can save their progress, turn on better Wi-Fi, and come back to finish submitting. We also test our forms on every old phone imaginable\u2014we had a customer using a 5-year-old Android that messed up our form\u2019s date field, so we switched to a simple dropdown instead of a calendar picker, and that fixed 90% of mobile form errors.<\/p>\n<p>As a Relay supplier, I also think about the person receiving the submissions\u2014our warehouse and sales teams. If a form comes in that\u2019s missing a critical piece of info, like the Relay model number, it doesn\u2019t help anyone. We added a quick validation step that checks for key fields before the submission even leaves the user\u2019s device. If someone forgets to pick their Relay model, the form doesn\u2019t let them submit\u2014it pops up a tiny message right next to the field that says, \u201cWhoops, pick which Relay you\u2019re asking about!\u201d No need to wait for the server to catch it, which saves everyone time. That validation is lightweight\u2014no fancy code, just a few simple checks\u2014and it\u2019s made our team\u2019s job so much easier.<\/p>\n<p>I\u2019ve also learned that real people make mistakes when filling out forms. Last month, a customer submitted a form that said, \u201cI need 100 Relays\u201d but didn\u2019t specify the type. Our team almost sent a generic reply until we added a feature that highlights missing info and offers quick options. So instead of leaving it blank, we show three common Relay models (compact, heavy-duty, custom) and ask, \u201cPick one, or add your own.\u201d That cuts down on follow-up questions by half. It\u2019s a small touch, but it makes the whole process less frustrating for everyone.<\/p>\n<p>Let me talk about a mistake I see way too many suppliers make: overcomplicating the submission process with extra steps. Some sites make you make an account just to submit a form or request a quote. That\u2019s crazy\u2014half the people will bail before even starting. Our form is completely anonymous until the end, when you put in your email. No account needed, no login hoops, nothing. We tested this a year ago vs. a similar site that required an account, and our submission rate was 2.5 times higher. People just don\u2019t want to make accounts for random quote requests, especially when they\u2019re not sure if they\u2019ll even buy anything.<\/p>\n<p>Another thing: error handling on the backend. When our server gets a form submission, it doesn\u2019t just say \u201csuccess\u201d or \u201cfail.\u201d It sends a specific error message if something\u2019s wrong\u2014like, \u201cFile too big (max 5MB)\u201d instead of \u201cerror.\u201d When we first did this, our team was getting a ton of messages saying, \u201cWhy won\u2019t my photo upload?\u201d Now they get a clear note telling them to resize their photo, and the user fixes it themselves instead of emailing us. That\u2019s another small win.<\/p>\n<p>Wait, what about offline users? A lot of people submit forms on the go, where Wi-Fi is spotty. We added a little offline indicator that lets them know if they\u2019re connected before they submit. If they\u2019re offline, the form says, \u201cYou\u2019re not connected to the internet\u2014submit later when you\u2019re back.\u201d No more submissions that never go through because the data gets lost mid-send.<\/p>\n<p>Let me wrap this up with what I\u2019ve learned over the years, because I know you don\u2019t want a list of random tips\u2014you want actionable stuff that works. First, keep forms short, only ask for what you need. Second, give instant feedback, no spinners, no vague errors. Third, handle files and edge cases (like bad service, duplicate submissions) so no one gets stuck. Fourth, make sure your backend failsafes work so you never lose a submission. Fifth, don\u2019t make people make accounts just to submit. And finally, test your forms with real people\u2014not just devs. I have a group of 10 Relay customers who test every new form update, and their feedback has fixed more issues than any manual testing I could do.<\/p>\n<p>At the end of the day, form submissions in Relay (or any business, really) are about respect for the other person. If you make it easy for someone to send you a request, and easy for your team to handle it, everyone wins. I\u2019ve had customers tell me our form is the easiest they\u2019ve ever used, and that\u2019s not because we have fancy tech\u2014it\u2019s because we thought through every step, from the second they click \u201cRequest Quote\u201d to the second we reply to their email.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.jianxintechnical.com\/uploads\/202336472\/small\/two-phase-static-watt-hour-meterf1ab2373-3b89-48c7-9a50-048ac07cb8a7.jpg\"><\/p>\n<p>If you\u2019re a Relay user or a business looking to work with a supplier that gets how submissions work, I\u2019d love to chat. Whether you need a custom Relay build, replacement parts, or just have questions about how to make your own forms work better, hit us up. We\u2019re always here to help.<\/p>\n<p><a href=\"https:\/\/www.jianxintechnical.com\/energy-meter-parts\/relay\/\">Relay<\/a> REFERENCES<\/p>\n<ol>\n<li>Relay Vendor Community 2023<\/li>\n<li>Web Form Best Practices for Industrial Suppliers 2024<\/li>\n<li>Frontend Dev Tips for Reliable Form Submissions 2023<\/li>\n<\/ol>\n<hr>\n<p><a href=\"https:\/\/www.jianxintechnical.com\/\">Jian Xin Technical Limited<\/a><br \/>Jian Xin Technical Limited is well-known as one of the leading relay manufacturers and suppliers in China. If you&#8217;re going to buy high quality relay with low price, welcome to get pricelist from our factory. Also, customized service is available.<br \/>Address: Jianxin Industry Park, Longtan Load, Yuhang District, Hangzhou, China. 311121<br \/>E-mail: marketing@jianxintechnical.com<br \/>WebSite: <a href=\"https:\/\/www.jianxintechnical.com\/\">https:\/\/www.jianxintechnical.com\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey there, if you\u2019re working with Relay\u2014like I do, running a small but busy Relay supply &hellip; <a title=\"How to handle form submissions in Relay?\" class=\"hm-read-more\" href=\"http:\/\/www.esifinland.com\/blog\/2026\/11\/20\/how-to-handle-form-submissions-in-relay-4aef-cbb319\/\"><span class=\"screen-reader-text\">How to handle form submissions in Relay?<\/span>Read more<\/a><\/p>\n","protected":false},"author":159,"featured_media":3842,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3805],"class_list":["post-3842","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-industry","tag-relay-4aef-cbf713"],"_links":{"self":[{"href":"http:\/\/www.esifinland.com\/blog\/wp-json\/wp\/v2\/posts\/3842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.esifinland.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.esifinland.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.esifinland.com\/blog\/wp-json\/wp\/v2\/users\/159"}],"replies":[{"embeddable":true,"href":"http:\/\/www.esifinland.com\/blog\/wp-json\/wp\/v2\/comments?post=3842"}],"version-history":[{"count":0,"href":"http:\/\/www.esifinland.com\/blog\/wp-json\/wp\/v2\/posts\/3842\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.esifinland.com\/blog\/wp-json\/wp\/v2\/posts\/3842"}],"wp:attachment":[{"href":"http:\/\/www.esifinland.com\/blog\/wp-json\/wp\/v2\/media?parent=3842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.esifinland.com\/blog\/wp-json\/wp\/v2\/categories?post=3842"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.esifinland.com\/blog\/wp-json\/wp\/v2\/tags?post=3842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}