Quote request form with site photos in WordPress
A quote request form for tradespeople: the customer describes the work, picks a start date range and attaches up to six site photos, each with a preview, its size and a button to remove it.
Here is an excerpt of this component's code in WordPress. The full code is free for members, ready to copy into your project.
This component also comes in
The code in WordPress
<?php
/**
* Plugin Name: Forge, Formulaire de devis avec photos
* Description: Un formulaire de demande de devis pour artisan : le client décrit ses travaux, choisit un délai de démarrage et joint jusqu’à six photos du chantier, avec aperçu, poids et bouton pour retirer chacune. Ajoute la composition « Formulaire de devis avec photos » à l'éditeur de blocs.
* Version: 1.0.0
* Requires at least: 6.6
* Requires PHP: 8.1
* Author: Forge
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: forge-formulaire-demande-devis-photos-chantier
*<!-- wp:html -->
<div class="fdp" lang="fr" data-fdp>
<form class="fdp-form" id="fdp-formulaire" action="#fdp-formulaire" method="post" enctype="multipart/form-data" novalidate aria-labelledby="fdp-titre" data-fdp-form>
<div class="fdp-head">
<p class="fdp-eyebrow">Garnier Rénovation · Rennes et alentours</p>
<h2 class="fdp-title" id="fdp-titre">Demandez un devis pour vos travaux</h2>
<p class="fdp-lead">Quelques photos du chantier nous permettent souvent de chiffrer sans visite préalable. Réponse sous 48 h ouvrées. Tous les champs sont obligatoires, sauf mention contraire.</p>
</div>
<div class="fdp-summary" tabindex="-1" role="group" aria-labelledby="fdp-resume-titre" hidden data-fdp-summary>
<h3 class="fdp-stitle" id="fdp-resume-titre" data-fdp-summary-title>Des champs sont à corriger avant l’envoi</h3>
<ul class="fdp-slist" data-fdp-summary-list>
<li><a class="fdp-slink" href="#fdp-travaux"></a></li>(() => {
if (!document.querySelector(".fdp")) return;
document.querySelectorAll("[data-fdp]").forEach((root) => {
const on = (el, type, fn) => el.addEventListener(type, fn);
const offs = [];
const $ = (selector) => root.querySelector(selector);
const form = $("[data-fdp-form]");
const summary = $("[data-fdp-summary]");
const list = $("[data-fdp-summary-list]");
const done = $("[data-fdp-done]");
const count = $("[data-fdp-count]");
const zone = $("[data-fdp-zone]");:root {
--fdp-scheme: light;
--fdp-card: #fbfaf7;
--fdp-text: #1d2321;
--fdp-muted: #4c5753;
--fdp-accent: #0e5e56;
--fdp-on-accent: #ffffff;
--fdp-line: #7c8783;
--fdp-soft: #eaf3f1;
--fdp-error: #b42318;
--fdp-error-soft: #fdf0ee;
--fdp-radius: 0.75rem;Free component: copy it freely, including for commercial projects.
Other forms and inputs components in WordPress
Forms and inputs components in WordPress
A quote request form whose labels, hints and error messages are full French sentences, still readable at 320 px: nothing overflows, nothing is cut off, and each error is tied to its field.
- Tailwind
- React
- CSS
- WordPress

Visitors pick a package and tick options: the pre-tax total, VAT and total including tax update live, and the summary is sent with the contact form.
- Tailwind
- React
- CSS
- WordPress

A short NPS survey: a 0 to 10 score as radio buttons, then a follow-up question adapted to whether the customer is a detractor, passive or promoter.
- Tailwind
- React
- CSS
- WordPress

An honest unsubscribe page: address prefilled from the link, choice between stopping everything or receiving less, optional reason and an undo.
- Tailwind
- React
- CSS
- WordPress

A callback request form: French phone number checked and formatted, topic, working day and time slot, with explicit consent to the call.
- Tailwind
- React
- CSS
- WordPress

A SIRET or SIREN field that checks the Luhn key as you type, handles the La Poste exception, formats the number and links to the official business directory.
- Tailwind
- React
- CSS
- WordPress