Referral form template

Collects who is making the referral, who they are referring and why. For refer-a-friend programs and professional referrals. Keep the checkbox: you should only contact people whose details were passed on with their agreement.

Preview

html
<form action="https://formtango.com/f/YOUR_FORM_ID" method="POST">
  <p>
    <label for="name">Your name</label>
    <input type="text" id="name" name="name" required>
  </p>
  <p>
    <label for="email">Your email</label>
    <input type="email" id="email" name="email" required>
  </p>
  <p>
    <label for="friend_name">Name of the person you are referring</label>
    <input type="text" id="friend_name" name="friend_name" required>
  </p>
  <p>
    <label for="friend_email">Their email</label>
    <input type="email" id="friend_email" name="friend_email" required>
  </p>
  <p>
    <label for="friend_phone">Their phone</label>
    <input type="tel" id="friend_phone" name="friend_phone">
  </p>
  <p>
    <label for="reason">What do they need help with?</label>
    <textarea id="reason" name="reason" rows="5"></textarea>
  </p>
  <p>
    <input type="checkbox" id="friend_agreed" name="friend_agreed" value="yes" required>
    <label for="friend_agreed">They have agreed to me sharing their details</label>
  </p>
  <!-- Spam trap: leave this hidden and empty -->
  <input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off">
  <button type="submit">Send referral</button>
</form>

Referral form with Tailwind CSS

The same form styled with Tailwind utility classes. Change indigo to your own color.

html + tailwind
<form action="https://formtango.com/f/YOUR_FORM_ID" method="POST" class="mx-auto max-w-lg space-y-5">
  <div>
    <label for="name" class="block text-sm font-medium text-gray-700">Your name</label>
    <input type="text" id="name" name="name" class="mt-1 block w-full rounded-lg border border-gray-300 px-3 py-2 text-gray-900 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500" required>
  </div>
  <div>
    <label for="email" class="block text-sm font-medium text-gray-700">Your email</label>
    <input type="email" id="email" name="email" class="mt-1 block w-full rounded-lg border border-gray-300 px-3 py-2 text-gray-900 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500" required>
  </div>
  <div>
    <label for="friend_name" class="block text-sm font-medium text-gray-700">Name of the person you are referring</label>
    <input type="text" id="friend_name" name="friend_name" class="mt-1 block w-full rounded-lg border border-gray-300 px-3 py-2 text-gray-900 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500" required>
  </div>
  <div>
    <label for="friend_email" class="block text-sm font-medium text-gray-700">Their email</label>
    <input type="email" id="friend_email" name="friend_email" class="mt-1 block w-full rounded-lg border border-gray-300 px-3 py-2 text-gray-900 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500" required>
  </div>
  <div>
    <label for="friend_phone" class="block text-sm font-medium text-gray-700">Their phone</label>
    <input type="tel" id="friend_phone" name="friend_phone" class="mt-1 block w-full rounded-lg border border-gray-300 px-3 py-2 text-gray-900 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500">
  </div>
  <div>
    <label for="reason" class="block text-sm font-medium text-gray-700">What do they need help with?</label>
    <textarea id="reason" name="reason" rows="5" class="mt-1 block w-full rounded-lg border border-gray-300 px-3 py-2 text-gray-900 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500"></textarea>
  </div>
  <label class="flex items-start gap-3 text-sm text-gray-700">
    <input type="checkbox" name="friend_agreed" value="yes" class="mt-1 h-4 w-4 rounded border-gray-300 text-indigo-600" required>
    <span>They have agreed to me sharing their details</span>
  </label>
  <!-- Spam trap: leave this hidden and empty -->
  <input type="text" name="_gotcha" class="hidden" tabindex="-1" autocomplete="off">
  <button type="submit" class="w-full rounded-lg bg-indigo-600 px-4 py-2.5 font-semibold text-white hover:bg-indigo-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2">Send referral</button>
</form>

How to use it

  1. Create a free FormTango account and add a form to get your endpoint.
  2. Copy the HTML and replace YOUR_FORM_ID with your form's id.
  3. Paste it into your page. Submissions arrive in your inbox and by email.

The hidden _gotcha field is a spam trap: people never see it, and bots that fill it in are discarded. Leave it as it is.