Overview
The Siloé Perú website includes two volunteer application forms:
- Volunteer Form - For general volunteers (
index.html:182-210)
- Clown Form - For clown volunteers (
index.html:430-466)
Both forms use FormSubmit.co for email submission, requiring no backend server.
Changing the Email Address
Critical: The current email address [email protected] receives all form submissions. You MUST change this to your organization’s email address.
Location: index.html:182
<form class="volunteer-form" action="https://formsubmit.co/[email protected]" method="POST">
Location: index.html:430
<form class="clow-form" action="https://formsubmit.co/[email protected]" method="POST">
Replace the email address
Confirm the email
On first submission, FormSubmit will send a confirmation email. Click the confirmation link to activate the form
Test the form
Submit a test application to ensure emails are being received correctly
Location: index.html:182-210
The volunteer form includes:
<form class="volunteer-form" action="https://formsubmit.co/[email protected]" method="POST">
<!-- Full Name -->
<div class="form-group">
<label for="nombre-voluntario">Nombre Completo *</label>
<input type="text" id="nombre-voluntario" name="Nombre Completo"
placeholder="Tu nombre completo" required>
</div>
<!-- DNI -->
<div class="form-group">
<label for="dni-voluntario">DNI (Identificación) *</label>
<input type="text" id="dni-voluntario" name="DNI"
placeholder="Tu número de DNI" required>
</div>
<!-- Phone -->
<div class="form-group">
<label for="telefono-voluntario">Número de Celular *</label>
<input type="tel" id="telefono-voluntario" name="Teléfono"
placeholder="Tu teléfono de contacto" required>
</div>
<!-- Motivation -->
<div class="form-group">
<label for="motivacion-voluntario">¿Por qué te gustaría apoyar? *</label>
<textarea id="motivacion-voluntario" name="Motivación"
placeholder="¿Por qué te gustaría apoyar en el Hospital del Niño?"
rows="5" required></textarea>
</div>
<!-- Privacy Checkbox -->
<div class="form-group checkbox-group">
<input type="checkbox" id="aceptacion-voluntario" name="Aceptación"
required style="width: auto;">
<label for="aceptacion-voluntario" style="width: auto;">
Acepto la política de privacidad y el uso de mis datos para la gestión del voluntariado.
</label>
</div>
<!-- Submit Button -->
<button type="submit" class="btn-enviar">ENVIAR MI SOLICITUD</button>
</form>
Location: index.html:430-466
<form class="clow-form" action="https://formsubmit.co/[email protected]" method="POST">
<!-- Full Name -->
<div class="form-group">
<label for="nombre-clow">Nombre Completo *</label>
<input type="text" id="nombre-clow" name="Nombre Completo"
placeholder="Tu nombre" required>
</div>
<!-- Email -->
<div class="form-group">
<label for="email-clow">Correo Electrónico *</label>
<input type="email" id="email-clow" name="Correo Electrónico"
placeholder="[email protected]" required>
</div>
<!-- Phone -->
<div class="form-group">
<label for="telefono-clow">Número de Teléfono *</label>
<input type="tel" id="telefono-clow" name="Teléfono"
placeholder="+51 9 XXXX XXXX" required>
</div>
<!-- Motivation -->
<div class="form-group">
<label for="motivacion-clow">¿Por qué quieres ser un Clown de Siloé? *</label>
<textarea id="motivacion-clow" name="Motivación"
placeholder="Cuéntanos sobre tu experiencia y por qué crees que puedes traer sonrisas..."
rows="6" required></textarea>
</div>
<!-- Privacy Checkbox -->
<div class="form-group checkbox-group">
<input type="checkbox" id="terminos-clow" name="Aceptación"
required style="width: auto;">
<label for="terminos-clow" style="width: auto; display: inline;">
Acepto la política de privacidad y el uso de mis datos para la gestión del voluntariado de Siloé.
</label>
</div>
<!-- Submit Button -->
<button type="submit" class="btn-enviar btn-clow-submit">¡SÍ, QUIERO SER CLOWN DE SILOÉ!</button>
</form>
To add a new field to either form:
Copy an existing form-group
Find a similar field type and copy the entire <div class="form-group"> block
Update the ID and name
Change the id, for, and name attributes to match your new field:<div class="form-group">
<label for="edad-voluntario">Edad *</label>
<input type="number" id="edad-voluntario" name="Edad"
placeholder="Tu edad" required>
</div>
Insert the field
Paste the new field block where you want it in the form (before the checkbox or submit button)
Test the submission
Fill out the form and verify the new field appears in the email you receive
The name attribute determines how the field appears in your email. Use descriptive names like “Edad” or “Ciudad” so you can easily identify the data.
To remove a field:
Locate the form-group
Find the entire <div class="form-group"> block for the field you want to remove
Delete the block
Delete from <div class="form-group"> to its closing </div> tag
Test the form
Ensure the form still works and looks correct after removal
Modifying Required/Optional Fields
Making a Field Optional
Remove the required attribute from the input:
<input type="text" id="dni-voluntario" name="DNI"
placeholder="Tu número de DNI" required>
Also update the label to remove the asterisk:
<label for="dni-voluntario">DNI (Identificación) *</label>
Making a Field Required
Add the required attribute:
<input type="email" id="email-voluntario" name="Email"
placeholder="[email protected]" required>
Add an asterisk to the label:
<label for="email-voluntario">Correo Electrónico *</label>
Field Types
Text Input
<input type="text" id="field-id" name="Field Name" placeholder="Placeholder" required>
<input type="email" id="field-id" name="Email" placeholder="[email protected]" required>
Automatically validates email format.
<input type="tel" id="field-id" name="Teléfono" placeholder="+51 9 XXXX XXXX" required>
<input type="number" id="field-id" name="Edad" placeholder="Tu edad" min="18" max="100" required>
Textarea (Multi-line)
<textarea id="field-id" name="Mensaje" placeholder="Tu mensaje" rows="5" required></textarea>
Checkbox
<input type="checkbox" id="field-id" name="Acepto" required>
Select Dropdown
<select id="field-id" name="Disponibilidad" required>
<option value="">Selecciona una opción</option>
<option value="manana">Mañanas</option>
<option value="tarde">Tardes</option>
<option value="fin-semana">Fines de semana</option>
</select>
Customizing Button Text
Location: index.html:208
<button type="submit" class="btn-enviar">ENVIAR MI SOLICITUD</button>
Change to:
<button type="submit" class="btn-enviar">POSTULAR AHORA</button>
Location: index.html:464
<button type="submit" class="btn-enviar btn-clow-submit">¡SÍ, QUIERO SER CLOWN DE SILOÉ!</button>
Do NOT remove the btn-clow-submit class from the clown form button. This class provides the special gradient styling.
Button styles are defined in style.css:
Location: style.css:399-416
.btn-enviar {
background-color: var(--azul-siloe);
color: white;
padding: 15px;
border: none;
width: 100%;
border-radius: 8px;
font-weight: bold;
cursor: pointer;
font-size: 1rem;
transition: all 0.3s;
}
.btn-enviar:hover {
background-color: #1e8abc;
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(41, 171, 226, 0.3);
}
Location: style.css:419-427
.btn-clow-submit {
background: linear-gradient(135deg, var(--amarillo-vibrante), var(--rosa-vibrante));
font-size: 1.05rem;
}
.btn-clow-submit:hover {
background: linear-gradient(135deg, #FFC700, #FF5BA0);
box-shadow: 0 8px 20px rgba(255, 107, 180, 0.4);
}
Adding reCAPTCHA or Validation
FormSubmit.co provides several features you can enable by adding hidden inputs:
Disable CAPTCHA
<input type="hidden" name="_captcha" value="false">
Custom Subject Line
<input type="hidden" name="_subject" value="Nueva Solicitud de Voluntario">
Redirect After Submission
<input type="hidden" name="_next" value="https://yoursite.com/gracias.html">
CC Email
Auto-response Email
<input type="hidden" name="_autoresponse" value="Gracias por tu interés. Te contactaremos pronto.">
Example with Features
<form class="volunteer-form" action="https://formsubmit.co/[email protected]" method="POST">
<!-- form fields -->
</form>
Changing Success/Confirmation Behavior
Default Behavior
By default, FormSubmit shows a generic success page after submission.
Custom Thank You Page
Create a thank you page
Create a new HTML file (e.g., gracias.html) with a thank you message
Add redirect to form
Add this hidden input to your form:<input type="hidden" name="_next" value="https://yoursite.com/gracias.html">
Upload thank you page
Ensure the thank you page is accessible at the URL you specified
Custom Success Message Example
Create gracias.html:
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>¡Gracias! - Siloé Perú</title>
<link rel="stylesheet" href="style.css">
</head>
<body style="display: flex; align-items: center; justify-content: center; min-height: 100vh; text-align: center;">
<div>
<h1 style="color: var(--azul-siloe); font-size: 3rem;">¡Gracias!</h1>
<p style="font-size: 1.2rem; max-width: 600px; margin: 20px auto;">
Hemos recibido tu solicitud. Nuestro equipo la revisará y te contactaremos pronto.
</p>
<a href="index.html" style="display: inline-block; padding: 15px 40px; background: var(--azul-siloe); color: white; text-decoration: none; border-radius: 8px; margin-top: 20px;">
Volver al inicio
</a>
</div>
</body>
</html>
HTML5 Validation
The forms use built-in HTML5 validation:
required - Field must be filled
type="email" - Must be valid email format
type="tel" - Phone number format
minlength="X" - Minimum character length
maxlength="X" - Maximum character length
min="X" and max="X" - For number inputs
Example Custom Validation
<input type="text"
id="dni-voluntario"
name="DNI"
placeholder="8 dígitos"
required
pattern="[0-9]{8}"
title="El DNI debe tener 8 dígitos">
Input styles are defined in style.css:361-377:
input, textarea {
width: 100%;
padding: 15px;
margin: 0;
border: 1px solid #ddd;
border-radius: 8px;
font-family: inherit;
font-size: 1rem;
box-sizing: border-box;
transition: border-color 0.3s;
}
input:focus, textarea:focus {
outline: none;
border-color: var(--azul-siloe);
box-shadow: 0 0 8px rgba(41, 171, 226, 0.2);
}
Test each field
Try submitting with empty required fields to verify validation works
Test email format
For email fields, try invalid formats to ensure validation catches errors
Submit test data
Fill out completely and submit to verify email delivery
Check email formatting
Verify the received email is well-formatted and includes all fields
Test on mobile
Ensure forms work correctly on mobile devices
Troubleshooting
- Ensure
required attribute is present
- Check that input
type matches the validation needed
- Verify there are no JavaScript errors in browser console
- Verify
style.css is linked in the HTML head
- Check that CSS class names match (e.g.,
btn-enviar)
- Clear browser cache and reload