<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: andrea</title>
    <description>The latest articles on DEV Community by andrea (@andreagallai).</description>
    <link>https://dev.to/andreagallai</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4190748%2F8f01daa8-e5b5-4853-a508-3ddaf6a44fe2.png</url>
      <title>DEV Community: andrea</title>
      <link>https://dev.to/andreagallai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andreagallai"/>
    <language>en</language>
    <item>
      <title>Your quote form is asking the wrong people for a budget</title>
      <dc:creator>andrea</dc:creator>
      <pubDate>Sun, 18 Oct 2026 08:45:33 +0000</pubDate>
      <link>https://dev.to/andreagallai/your-quote-form-is-asking-the-wrong-people-for-a-budget-44kd</link>
      <guid>https://dev.to/andreagallai/your-quote-form-is-asking-the-wrong-people-for-a-budget-44kd</guid>
      <description>&lt;p&gt;Most agency contact forms have one box labelled "Message". People write "Hi, I'd like some information" and you learn nothing. So you add fields — budget, timeline, project type — and now the form has nine questions and nobody finishes it.&lt;/p&gt;

&lt;p&gt;The mistake is treating every visitor the same.&lt;/p&gt;

&lt;p&gt;Someone who wants a written quote will answer five questions, because they get a number in return. It's a fair trade and they know it. Someone who just wants to talk to a human will not answer any of them — asking a stranger for their budget before they've heard your voice is the fastest way to lose them.&lt;/p&gt;

&lt;p&gt;So ask one question first:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do you want a quote, or do you want to talk?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Then send them down different paths. Five questions for the first. Two for the second. Same form, two lengths, and neither group is treated like the other one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;config&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;entryStep&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;intent&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;branches&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;when&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;quote&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;intent&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;scope&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;budget&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;timing&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;contact&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;when&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;talk&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;  &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;intent&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;contact&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="c1"&gt;// …&lt;/span&gt;
&lt;span class="p"&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Four things I got wrong first
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;"I don't know yet" has to be a valid answer.&lt;/strong&gt;&lt;br&gt;
I left it out of the budget step, thinking it would push people to commit to a number. It did the opposite: they either guessed something misleading, or closed the tab. An honest "no idea yet" tells you more than a made-up 5.000.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Error messages should say how to fix it.&lt;/strong&gt;&lt;br&gt;
"This field is required" makes people hunt for what's missing. "That address is missing the @ or the domain" does not. It costs one sentence per rule and it's the difference between a form people finish and one they abandon.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Save the draft.&lt;/strong&gt;&lt;br&gt;
Someone fills half the form, gets interrupted, comes back to an empty page — and does not start again. &lt;code&gt;localStorage&lt;/code&gt;, wrapped in try/catch so a private window degrades to no draft rather than a crash. Clear it on submit.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The progress bar lies before the first answer.&lt;/strong&gt;&lt;br&gt;
This one took me longest to see. With branching, you don't know how many steps there are until they pick a path. My first version showed "Step 1 of 1" and a Send button on the opening question, because the branch wasn't decided yet. Show the longest branch as the estimate instead: better to promise six and ask three than the reverse.&lt;/p&gt;
&lt;h2&gt;
  
  
  On the bot field
&lt;/h2&gt;

&lt;p&gt;An off-screen input no human fills. If it arrives with a value, drop the submission — and tell the bot it worked. A bot told it failed just tries again.&lt;/p&gt;

&lt;p&gt;Position it off-screen rather than &lt;code&gt;display: none&lt;/code&gt;: some bots skip hidden fields but happily fill a positioned one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.qf-trap&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;absolute&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;left&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;-9999px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;overflow&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;hidden&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It is not a captcha and will not stop a determined attacker. It stops the cheap ones, which is most of them, without making a single real person solve a puzzle.&lt;/p&gt;




&lt;p&gt;I packaged all of this as a React component — no dependencies, every string configurable, light and dark mode, around 530 commented lines. It's called &lt;a href="https://localvision.it/components/quoteflow" rel="noopener noreferrer"&gt;QuoteFlow&lt;/a&gt; — that page has a live demo you can click through, branching and all — if it saves you the afternoon.&lt;/p&gt;

</description>
      <category>react</category>
      <category>webdev</category>
      <category>ux</category>
      <category>forms</category>
    </item>
  </channel>
</rss>
