Contest entry form template
Collects the entrant, their entry and their agreement to the rules. For giveaways, sweepstakes and prize drawings. Link your rules beside the checkbox, and check the law on prize promotions where you run it. Uploaded entries need a paid plan, so remove that field on the free plan.
Preview
html
<form action="https://formtango.com/f/YOUR_FORM_ID" method="POST" enctype="multipart/form-data">
<p>
<label for="name">Name</label>
<input type="text" id="name" name="name" required>
</p>
<p>
<label for="email">Email</label>
<input type="email" id="email" name="email" required>
</p>
<p>
<label for="country">Country</label>
<input type="text" id="country" name="country">
</p>
<p>
<label for="answer">Your entry or answer</label>
<textarea id="answer" name="answer" rows="5" required></textarea>
</p>
<p>
<label for="entry_file">Photo or file for your entry (optional)</label>
<input type="file" id="entry_file" name="entry_file">
</p>
<p>
<input type="checkbox" id="agree_rules" name="agree_rules" value="yes" required>
<label for="agree_rules">I have read and agree to the contest rules</label>
</p>
<p>
<input type="checkbox" id="newsletter" name="newsletter" value="yes">
<label for="newsletter">Send me news and offers by email</label>
</p>
<!-- Spam trap: leave this hidden and empty -->
<input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off">
<button type="submit">Enter contest</button>
</form>Contest entry 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" enctype="multipart/form-data" class="mx-auto max-w-lg space-y-5">
<div>
<label for="name" class="block text-sm font-medium text-gray-700">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">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="country" class="block text-sm font-medium text-gray-700">Country</label>
<input type="text" id="country" name="country" 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="answer" class="block text-sm font-medium text-gray-700">Your entry or answer</label>
<textarea id="answer" name="answer" 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" required></textarea>
</div>
<div>
<label for="entry_file" class="block text-sm font-medium text-gray-700">Photo or file for your entry (optional)</label>
<input type="file" id="entry_file" name="entry_file" class="mt-1 block w-full text-sm text-gray-700 file:mr-4 file:rounded-lg file:border-0 file:bg-indigo-50 file:px-4 file:py-2 file:font-medium file:text-indigo-700">
</div>
<label class="flex items-start gap-3 text-sm text-gray-700">
<input type="checkbox" name="agree_rules" value="yes" class="mt-1 h-4 w-4 rounded border-gray-300 text-indigo-600" required>
<span>I have read and agree to the contest rules</span>
</label>
<label class="flex items-start gap-3 text-sm text-gray-700">
<input type="checkbox" name="newsletter" value="yes" class="mt-1 h-4 w-4 rounded border-gray-300 text-indigo-600">
<span>Send me news and offers by email</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">Enter contest</button>
</form>How to use it
- Create a free FormTango account and add a form to get your endpoint.
- Copy the HTML and replace YOUR_FORM_ID with your form's id.
- 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.