Association membership form with fee options in WordPress
An online membership form: choice of fee (including a reduced rate and a free amount), optional donation and a live total summary.
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, Adhésion à une association avec choix de cotisation
* Description: Un bulletin d’adhésion en ligne : choix de la cotisation (dont tarif réduit et montant libre), don facultatif et récapitulatif du total en direct. Ajoute la composition « Adhésion à une association avec choix de cotisation » à 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-adhesion-association
*<!-- wp:html -->
<form class="gaa" data-gaa novalidate aria-labelledby="gaa-titre">
<p class="gaa-eyebrow">Saison 2026-2027 · de septembre à août</p>
<h2 class="gaa-title" id="gaa-titre">Adhérer aux Jardins partagés de Bellevue</h2>
<fieldset class="gaa-fs">
<legend class="gaa-legend">Cotisation</legend>
<label class="gaa-option">
<input class="gaa-radio" type="radio" name="formule" value="individuelle" data-gaa-price="20" data-gaa-label="Individuelle" checked>
<span class="gaa-opt-text">
<span class="gaa-opt-name">Individuelle · 20 €</span>
<span class="gaa-opt-sub">Une personne</span>
</span>(() => {
if (!document.querySelector(".gaa")) return;
document.querySelectorAll("[data-gaa]").forEach((root) => {
const on = (el, type, fn) => el.addEventListener(type, fn);
const plans = [...root.querySelectorAll('[name="formule"]')];
const payments = [...root.querySelectorAll('[name="reglement"]')];
const free = root.querySelector('[name="montant_libre"]');
const gift = root.querySelector('[name="don"]');
const name = root.querySelector('[name="nom"]');
const email = root.querySelector('[name="email"]');
const status = root.querySelector("[data-gaa-status]");
const $ = (selector) => root.querySelector(selector);:root {
--gaa-card: #ffffff;
--gaa-text: #26201a;
--gaa-muted: #5c5146;
--gaa-accent: #9a3412;
--gaa-line: #d6ccc0;
--gaa-soft: #fbf3ea;
--gaa-error: #b91c1c;
--demo-formulaire-adhesion-association-bg: #f1ebe3;
--demo-formulaire-adhesion-association-text: #26201a;
}
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 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.
- Tailwind
- React
- CSS
- 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