Integration

Form Templates

Ready-to-use HTML templates. Copy, customize, and deploy in minutes. Just replace YOUR_FORM_ID with your actual form ID.

Contact Form (Dark Theme)

A modern, dark-themed contact form perfect for dark websites.

HTML
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Contact Form</title>
</head>
<body>
  <form action="https://townhall.gg/f/YOUR_FORM_ID" method="POST" style="
    max-width: 480px;
    margin: 40px auto;
    padding: 32px;
    background: #111111;
    border: 1px solid #333;
    border-radius: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  ">
    <h2 style="color: #fafafa; margin: 0 0 8px; font-size: 24px;">Contact Us</h2>
    <p style="color: #a3a3a3; margin: 0 0 24px; font-size: 14px;">We'd love to hear from you</p>
    
    <div style="margin-bottom: 16px;">
      <label style="display: block; color: #fafafa; font-size: 14px; margin-bottom: 6px;">Name</label>
      <input type="text" name="name" required style="
        width: 100%;
        padding: 12px 14px;
        background: #171717;
        border: 1px solid #333;
        border-radius: 8px;
        color: #fafafa;
        font-size: 16px;
        box-sizing: border-box;
      ">
    </div>
    
    <div style="margin-bottom: 16px;">
      <label style="display: block; color: #fafafa; font-size: 14px; margin-bottom: 6px;">Email</label>
      <input type="email" name="email" required style="
        width: 100%;
        padding: 12px 14px;
        background: #171717;
        border: 1px solid #333;
        border-radius: 8px;
        color: #fafafa;
        font-size: 16px;
        box-sizing: border-box;
      ">
    </div>
    
    <div style="margin-bottom: 20px;">
      <label style="display: block; color: #fafafa; font-size: 14px; margin-bottom: 6px;">Message</label>
      <textarea name="message" rows="4" required style="
        width: 100%;
        padding: 12px 14px;
        background: #171717;
        border: 1px solid #333;
        border-radius: 8px;
        color: #fafafa;
        font-size: 16px;
        resize: vertical;
        box-sizing: border-box;
      "></textarea>
    </div>
    
    <button type="submit" style="
      width: 100%;
      padding: 14px;
      background: #3b82f6;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
    ">Send Message</button>
  </form>
</body>
</html>

Contact Form (Light Theme)

A clean, light-themed contact form with subtle shadows.

HTML
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Contact Form</title>
</head>
<body style="background: #f5f5f5; margin: 0; padding: 20px;">
  <form action="https://townhall.gg/f/YOUR_FORM_ID" method="POST" style="
    max-width: 480px;
    margin: 40px auto;
    padding: 32px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  ">
    <h2 style="color: #111; margin: 0 0 8px; font-size: 24px;">Get in Touch</h2>
    <p style="color: #666; margin: 0 0 24px; font-size: 14px;">Fill out the form below</p>
    
    <div style="margin-bottom: 16px;">
      <label style="display: block; color: #333; font-size: 14px; font-weight: 500; margin-bottom: 6px;">Name</label>
      <input type="text" name="name" required placeholder="John Doe" style="
        width: 100%;
        padding: 12px 14px;
        background: #fafafa;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        font-size: 16px;
        box-sizing: border-box;
      ">
    </div>
    
    <div style="margin-bottom: 16px;">
      <label style="display: block; color: #333; font-size: 14px; font-weight: 500; margin-bottom: 6px;">Email</label>
      <input type="email" name="email" required placeholder="you@example.com" style="
        width: 100%;
        padding: 12px 14px;
        background: #fafafa;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        font-size: 16px;
        box-sizing: border-box;
      ">
    </div>
    
    <div style="margin-bottom: 20px;">
      <label style="display: block; color: #333; font-size: 14px; font-weight: 500; margin-bottom: 6px;">Message</label>
      <textarea name="message" rows="4" required placeholder="How can we help?" style="
        width: 100%;
        padding: 12px 14px;
        background: #fafafa;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        font-size: 16px;
        resize: vertical;
        box-sizing: border-box;
      "></textarea>
    </div>
    
    <button type="submit" style="
      width: 100%;
      padding: 14px;
      background: #111;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
    ">Send Message</button>
  </form>
</body>
</html>

Newsletter Signup

An eye-catching inline newsletter signup with gradient background.

HTML
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Newsletter Signup</title>
</head>
<body style="background: #0a0a0a; margin: 0; padding: 20px;">
  <form action="https://townhall.gg/f/YOUR_FORM_ID" method="POST" style="
    max-width: 400px;
    margin: 60px auto;
    padding: 32px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid #333;
    border-radius: 20px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  ">
    <div style="font-size: 48px; margin-bottom: 16px;">📬</div>
    <h2 style="color: #fafafa; margin: 0 0 8px; font-size: 22px;">Stay Updated</h2>
    <p style="color: #a3a3a3; margin: 0 0 24px; font-size: 14px; line-height: 1.5;">
      Get the latest news delivered to your inbox
    </p>
    
    <div style="display: flex; gap: 8px;">
      <input type="email" name="email" required placeholder="Enter your email" style="
        flex: 1;
        padding: 14px 16px;
        background: rgba(255,255,255,0.05);
        border: 1px solid #444;
        border-radius: 10px;
        color: #fafafa;
        font-size: 15px;
        outline: none;
      ">
      <button type="submit" style="
        padding: 14px 24px;
        background: #8b5cf6;
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
      ">Subscribe</button>
    </div>
    
    <p style="color: #666; font-size: 12px; margin: 16px 0 0;">
      No spam, unsubscribe anytime
    </p>
  </form>
</body>
</html>

Feedback Form

A friendly feedback form with emoji ratings - great for collecting user sentiment.

HTML
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Feedback Form</title>
</head>
<body style="background: #fafafa; margin: 0; padding: 20px;">
  <form action="https://townhall.gg/f/YOUR_FORM_ID" method="POST" style="
    max-width: 500px;
    margin: 40px auto;
    padding: 32px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  ">
    <h2 style="color: #111; margin: 0 0 8px; font-size: 22px;">Share Your Feedback</h2>
    <p style="color: #666; margin: 0 0 24px; font-size: 14px;">Help us improve your experience</p>
    
    <div style="margin-bottom: 20px;">
      <label style="display: block; color: #333; font-size: 14px; font-weight: 500; margin-bottom: 12px;">
        How would you rate your experience?
      </label>
      <div style="display: flex; gap: 8px;">
        <label style="flex: 1; cursor: pointer;">
          <input type="radio" name="rating" value="1" style="display: none;" required>
          <span style="display: block; padding: 16px; text-align: center; background: #fef2f2; border: 2px solid #fecaca; border-radius: 10px; font-size: 24px;">😞</span>
        </label>
        <label style="flex: 1; cursor: pointer;">
          <input type="radio" name="rating" value="2" style="display: none;">
          <span style="display: block; padding: 16px; text-align: center; background: #fef9c3; border: 2px solid #fde047; border-radius: 10px; font-size: 24px;">😐</span>
        </label>
        <label style="flex: 1; cursor: pointer;">
          <input type="radio" name="rating" value="3" style="display: none;">
          <span style="display: block; padding: 16px; text-align: center; background: #dcfce7; border: 2px solid #86efac; border-radius: 10px; font-size: 24px;">😊</span>
        </label>
        <label style="flex: 1; cursor: pointer;">
          <input type="radio" name="rating" value="4" style="display: none;">
          <span style="display: block; padding: 16px; text-align: center; background: #dbeafe; border: 2px solid #93c5fd; border-radius: 10px; font-size: 24px;">😃</span>
        </label>
        <label style="flex: 1; cursor: pointer;">
          <input type="radio" name="rating" value="5" style="display: none;">
          <span style="display: block; padding: 16px; text-align: center; background: #f3e8ff; border: 2px solid #d8b4fe; border-radius: 10px; font-size: 24px;">🤩</span>
        </label>
      </div>
    </div>
    
    <div style="margin-bottom: 20px;">
      <label style="display: block; color: #333; font-size: 14px; font-weight: 500; margin-bottom: 6px;">
        What can we improve? (optional)
      </label>
      <textarea name="feedback" rows="4" placeholder="Tell us what you think..." style="
        width: 100%;
        padding: 12px 14px;
        background: #fafafa;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        font-size: 15px;
        resize: vertical;
        box-sizing: border-box;
      "></textarea>
    </div>
    
    <button type="submit" style="
      width: 100%;
      padding: 14px;
      background: #22c55e;
      color: white;
      border: none;
      border-radius: 10px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
    ">Submit Feedback</button>
  </form>
</body>
</html>

Support Request Form

A comprehensive support ticket form with categories and structured fields.

HTML
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Support Request</title>
</head>
<body style="background: #f8fafc; margin: 0; padding: 20px;">
  <form action="https://townhall.gg/f/YOUR_FORM_ID" method="POST" style="
    max-width: 560px;
    margin: 40px auto;
    padding: 32px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  ">
    <div style="display: flex; align-items: center; gap: 12px; margin-bottom: 24px;">
      <div style="width: 48px; height: 48px; background: #dbeafe; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px;">🎧</div>
      <div>
        <h2 style="color: #0f172a; margin: 0; font-size: 20px;">Support Request</h2>
        <p style="color: #64748b; margin: 0; font-size: 14px;">We're here to help</p>
      </div>
    </div>
    
    <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px;">
      <div>
        <label style="display: block; color: #334155; font-size: 13px; font-weight: 500; margin-bottom: 6px;">Name</label>
        <input type="text" name="name" required style="
          width: 100%;
          padding: 10px 12px;
          background: #f8fafc;
          border: 1px solid #e2e8f0;
          border-radius: 8px;
          font-size: 15px;
          box-sizing: border-box;
        ">
      </div>
      <div>
        <label style="display: block; color: #334155; font-size: 13px; font-weight: 500; margin-bottom: 6px;">Email</label>
        <input type="email" name="email" required style="
          width: 100%;
          padding: 10px 12px;
          background: #f8fafc;
          border: 1px solid #e2e8f0;
          border-radius: 8px;
          font-size: 15px;
          box-sizing: border-box;
        ">
      </div>
    </div>
    
    <div style="margin-bottom: 16px;">
      <label style="display: block; color: #334155; font-size: 13px; font-weight: 500; margin-bottom: 6px;">Category</label>
      <select name="category" required style="
        width: 100%;
        padding: 10px 12px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 15px;
        color: #0f172a;
        box-sizing: border-box;
      ">
        <option value="">Select a category...</option>
        <option value="billing">Billing & Payments</option>
        <option value="technical">Technical Issue</option>
        <option value="account">Account & Login</option>
        <option value="feature">Feature Request</option>
        <option value="other">Other</option>
      </select>
    </div>
    
    <div style="margin-bottom: 20px;">
      <label style="display: block; color: #334155; font-size: 13px; font-weight: 500; margin-bottom: 6px;">Details</label>
      <textarea name="details" rows="5" required placeholder="Please describe your issue..." style="
        width: 100%;
        padding: 10px 12px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 15px;
        resize: vertical;
        box-sizing: border-box;
      "></textarea>
    </div>
    
    <button type="submit" style="
      width: 100%;
      padding: 12px;
      background: #3b82f6;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
    ">Submit Request</button>
  </form>
</body>
</html>

Customization Tips

🎨
Colors

Change the background, color, and border properties to match your brand.

📐
Sizing

Adjust max-width, padding, and margin to fit your layout.

📝
Fields

Add or remove form fields as needed. Remember to update the name attribute for each field.

Redirect

Configure a redirect URL in your form settings to send users to a thank-you page after submission.