La demande de nom et prénom permet d’aider un utilisateur à saisir son nom et son prénom.
<fieldset class="fr-fieldset" id="firstname-disabled-6768" aria-labelledby="firstname-disabled-6768-legend firstname-disabled-6768-messages">
<legend class="fr-sr-only" id="firstname-disabled-6768-legend">
Nom
</legend>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6776">
<label class="fr-label" for="family-name-6770">
Nom
</label>
<input class="fr-input" aria-describedby="family-name-6770-messages" name="family-name" autocomplete="family-name" id="family-name-6770" spellcheck="false" type="text">
<div class="fr-messages-group" id="family-name-6770-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6777">
<label class="fr-label" for="given-6775">
Prénom
</label>
<input class="fr-input" aria-describedby="given-6775-messages" name="given-name" autocomplete="given-name" id="given-6775" spellcheck="false" type="text">
<div class="fr-messages-group" id="given-6775-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-messages-group" id="firstname-disabled-6768-messages" aria-live="assertive">
</div>
</fieldset>
<fieldset class="fr-fieldset" id="firstname-disabled-6791" aria-labelledby="firstname-disabled-6791-legend firstname-disabled-6791-messages">
<legend class="fr-sr-only" id="firstname-disabled-6791-legend">
Nom
</legend>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6801">
<label class="fr-label" for="family-name-6793">
Nom
</label>
<input class="fr-input" aria-describedby="family-name-6793-messages" name="family-name" autocomplete="family-name" id="family-name-6793" spellcheck="false" type="text">
<div class="fr-messages-group" id="family-name-6793-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<fieldset class="fr-mb-n4v fr-fieldset" id="firstname-fieldset-6799" disabled aria-labelledby="firstname-fieldset-6799-legend firstname-fieldset-6799-messages">
<legend class="fr-sr-only" id="firstname-fieldset-6799-legend">
Prénom(s)
</legend>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6802">
<label class="fr-label" for="given-6798">
Prénom
</label>
<input class="fr-input" aria-describedby="given-6798-messages" name="given-name" autocomplete="given-name" id="given-6798" spellcheck="false" type="text">
<div class="fr-messages-group" id="given-6798-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-messages-group" id="firstname-fieldset-6799-messages" aria-live="assertive">
</div>
</fieldset>
</div>
<div class="fr-fieldset__element">
<div class="fr-checkbox-group fr-checkbox-group--sm">
<input onclick="const fieldset = document.getElementById('firstname-fieldset-6799');
if (this.checked) fieldset.setAttribute('disabled', '');
else fieldset.removeAttribute('disabled');
" checked name="firstname-disabled" id="disabler-6800" type="checkbox" aria-describedby="disabler-6800-messages">
<label class="fr-label" for="disabler-6800">
Je n'ai pas de prénom
</label>
<div class="fr-messages-group" id="disabler-6800-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-messages-group" id="firstname-disabled-6791-messages" aria-live="assertive">
</div>
</fieldset>
<fieldset class="fr-fieldset" id="married-name-6815" aria-labelledby="married-name-6815-legend married-name-6815-messages">
<legend class="fr-sr-only" id="married-name-6815-legend">
Nom
</legend>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6823">
<label class="fr-label" for="family-name-6817">
Nom
</label>
<input class="fr-input" aria-describedby="family-name-6817-messages" name="family-name" autocomplete="family-name" id="family-name-6817" spellcheck="false" type="text">
<div class="fr-messages-group" id="family-name-6817-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6824">
<label class="fr-label" for="married-6820">
Nom d'usage
<span class="fr-hint-text">Ancien nom…</span>
</label>
<input class="fr-input" aria-describedby="married-6820-messages" name="married-name" autocomplete="family-name" id="married-6820" spellcheck="false" type="text">
<div class="fr-messages-group" id="married-6820-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6825">
<label class="fr-label" for="given-6822">
Prénom
</label>
<input class="fr-input" aria-describedby="given-6822-messages" name="given-name" autocomplete="given-name" id="given-6822" spellcheck="false" type="text">
<div class="fr-messages-group" id="given-6822-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-messages-group" id="married-name-6815-messages" aria-live="assertive">
</div>
</fieldset>
<fieldset class="fr-fieldset" id="married-and-firstname-disabled-6840" aria-labelledby="married-and-firstname-disabled-6840-legend married-and-firstname-disabled-6840-messages">
<legend class="fr-sr-only" id="married-and-firstname-disabled-6840-legend">
Nom
</legend>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6850">
<label class="fr-label" for="family-name-6842">
Nom
</label>
<input class="fr-input" aria-describedby="family-name-6842-messages" name="family-name" autocomplete="family-name" id="family-name-6842" spellcheck="false" type="text">
<div class="fr-messages-group" id="family-name-6842-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6851">
<label class="fr-label" for="married-6845">
Nom d'usage
<span class="fr-hint-text">Ancien nom…</span>
</label>
<input class="fr-input" aria-describedby="married-6845-messages" name="married-name" autocomplete="family-name" id="married-6845" spellcheck="false" type="text">
<div class="fr-messages-group" id="married-6845-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<fieldset class="fr-mb-n4v fr-fieldset" id="firstname-fieldset-6848" disabled aria-labelledby="firstname-fieldset-6848-legend firstname-fieldset-6848-messages">
<legend class="fr-sr-only" id="firstname-fieldset-6848-legend">
Prénom(s)
</legend>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6852">
<label class="fr-label" for="given-6847">
Prénom
</label>
<input class="fr-input" aria-describedby="given-6847-messages" name="given-name" autocomplete="given-name" id="given-6847" spellcheck="false" type="text">
<div class="fr-messages-group" id="given-6847-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-messages-group" id="firstname-fieldset-6848-messages" aria-live="assertive">
</div>
</fieldset>
</div>
<div class="fr-fieldset__element">
<div class="fr-checkbox-group fr-checkbox-group--sm">
<input onclick="const fieldset = document.getElementById('firstname-fieldset-6848');
if (this.checked) fieldset.setAttribute('disabled', '');
else fieldset.removeAttribute('disabled');
" checked name="firstname-disabled" id="disabler-6849" type="checkbox" aria-describedby="disabler-6849-messages">
<label class="fr-label" for="disabler-6849">
Je n'ai pas de prénom
</label>
<div class="fr-messages-group" id="disabler-6849-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-messages-group" id="married-and-firstname-disabled-6840-messages" aria-live="assertive">
</div>
</fieldset>
<fieldset class="fr-fieldset" id="button-6867" aria-labelledby="button-6867-legend button-6867-messages">
<legend class="fr-sr-only" id="button-6867-legend">
Nom
</legend>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6877">
<label class="fr-label" for="family-name-6869">
Nom
</label>
<input class="fr-input" aria-describedby="family-name-6869-messages" name="family-name" autocomplete="family-name" id="family-name-6869" spellcheck="false" type="text">
<div class="fr-messages-group" id="family-name-6869-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<fieldset class="fr-mb-n4v fr-fieldset" id="firstname-fieldset-6875" aria-labelledby="firstname-fieldset-6875-legend firstname-fieldset-6875-messages">
<legend class="fr-sr-only" id="firstname-fieldset-6875-legend">
Prénom(s)
</legend>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6878">
<label class="fr-label" for="given-6874">
Prénom
</label>
<input class="fr-input" aria-describedby="given-6874-messages" name="given-name" autocomplete="given-name" id="given-6874" spellcheck="false" type="text">
<div class="fr-messages-group" id="given-6874-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<button class="fr-btn fr-btn--sm fr-icon-add-line fr-btn--icon-left fr-btn--tertiary" onclick="if (this.firstnamesCount === undefined) this.firstnamesCount = 1;
else this.firstnamesCount++;
const getFieldsetElement = (node) => {
const parent = node.parentNode;
if (parent.className.indexOf('fr-fieldset__element') > -1) return parent;
return getFieldsetElement(parent);
};
const firstname = getFieldsetElement(document.getElementById('given-6874'));
const reference = getFieldsetElement(this);
const copy = firstname.cloneNode(true);
copy.innerHTML = copy.innerHTML.replace(/given-6874/g, `given-6874-added-${this.firstnamesCount}`).replace('name="given-name"', `name="additional-name-${this.firstnamesCount}"`).replace('autocomplete="given-name"', 'autocomplete="additional-name"');
const container = reference.parentNode;
container.insertBefore(copy, reference);
" type="button" id="button-6879">
Ajouter un prénom
</button>
</div>
<div class="fr-messages-group" id="firstname-fieldset-6875-messages" aria-live="assertive">
</div>
</fieldset>
</div>
<div class="fr-fieldset__element">
<div class="fr-checkbox-group fr-checkbox-group--sm">
<input onclick="const fieldset = document.getElementById('firstname-fieldset-6875');
if (this.checked) fieldset.setAttribute('disabled', '');
else fieldset.removeAttribute('disabled');
" name="firstname-disabled" id="disabler-6876" type="checkbox" aria-describedby="disabler-6876-messages">
<label class="fr-label" for="disabler-6876">
Je n'ai pas de prénom
</label>
<div class="fr-messages-group" id="disabler-6876-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-messages-group" id="button-6867-messages" aria-live="assertive">
</div>
</fieldset>
<fieldset class="fr-fieldset" id="button-and-firstname-disabled-6894" aria-labelledby="button-and-firstname-disabled-6894-legend button-and-firstname-disabled-6894-messages">
<legend class="fr-sr-only" id="button-and-firstname-disabled-6894-legend">
Nom
</legend>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6904">
<label class="fr-label" for="family-name-6896">
Nom
</label>
<input class="fr-input" aria-describedby="family-name-6896-messages" name="family-name" autocomplete="family-name" id="family-name-6896" spellcheck="false" type="text">
<div class="fr-messages-group" id="family-name-6896-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<fieldset class="fr-mb-n4v fr-fieldset" id="firstname-fieldset-6902" disabled aria-labelledby="firstname-fieldset-6902-legend firstname-fieldset-6902-messages">
<legend class="fr-sr-only" id="firstname-fieldset-6902-legend">
Prénom(s)
</legend>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6905">
<label class="fr-label" for="given-6901">
Prénom
</label>
<input class="fr-input" aria-describedby="given-6901-messages" name="given-name" autocomplete="given-name" id="given-6901" spellcheck="false" type="text">
<div class="fr-messages-group" id="given-6901-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<button class="fr-btn fr-btn--sm fr-icon-add-line fr-btn--icon-left fr-btn--tertiary" onclick="if (this.firstnamesCount === undefined) this.firstnamesCount = 1;
else this.firstnamesCount++;
const getFieldsetElement = (node) => {
const parent = node.parentNode;
if (parent.className.indexOf('fr-fieldset__element') > -1) return parent;
return getFieldsetElement(parent);
};
const firstname = getFieldsetElement(document.getElementById('given-6901'));
const reference = getFieldsetElement(this);
const copy = firstname.cloneNode(true);
copy.innerHTML = copy.innerHTML.replace(/given-6901/g, `given-6901-added-${this.firstnamesCount}`).replace('name="given-name"', `name="additional-name-${this.firstnamesCount}"`).replace('autocomplete="given-name"', 'autocomplete="additional-name"');
const container = reference.parentNode;
container.insertBefore(copy, reference);
" type="button" id="button-6906">
Ajouter un prénom
</button>
</div>
<div class="fr-messages-group" id="firstname-fieldset-6902-messages" aria-live="assertive">
</div>
</fieldset>
</div>
<div class="fr-fieldset__element">
<div class="fr-checkbox-group fr-checkbox-group--sm">
<input onclick="const fieldset = document.getElementById('firstname-fieldset-6902');
if (this.checked) fieldset.setAttribute('disabled', '');
else fieldset.removeAttribute('disabled');
" checked name="firstname-disabled" id="disabler-6903" type="checkbox" aria-describedby="disabler-6903-messages">
<label class="fr-label" for="disabler-6903">
Je n'ai pas de prénom
</label>
<div class="fr-messages-group" id="disabler-6903-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-messages-group" id="button-and-firstname-disabled-6894-messages" aria-live="assertive">
</div>
</fieldset>
<fieldset class="fr-fieldset" id="name-international-6920" aria-labelledby="name-international-6920-legend name-international-6920-messages">
<legend class="fr-sr-only" id="name-international-6920-legend">
Nom
</legend>
<div class="fr-fieldset__element">
<div class="fr-select-group">
<label class="fr-label" for="country-6921">
Pays
</label>
<select class="fr-select" aria-describedby="country-6921-messages" id="country-6921" name="country">
<option value="" selected disabled hidden>Sélectionner une option</option>
<option value="FR">France</option>
<option value="DE">Allemagne</option>
<option value="IT">Italie</option>
<option value="ES">Espagne</option>
<option value="GB">Royaume-Uni</option>
</select>
<div class="fr-messages-group" id="country-6921-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6930">
<label class="fr-label" for="family-name-6922">
Nom
</label>
<input class="fr-input" aria-describedby="family-name-6922-messages" name="family-name" autocomplete="family-name" id="family-name-6922" spellcheck="false" type="text">
<div class="fr-messages-group" id="family-name-6922-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<fieldset class="fr-mb-n4v fr-fieldset" id="firstname-fieldset-6928" aria-labelledby="firstname-fieldset-6928-legend firstname-fieldset-6928-messages">
<legend class="fr-sr-only" id="firstname-fieldset-6928-legend">
Prénom(s)
</legend>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6931">
<label class="fr-label" for="given-6927">
Prénom
</label>
<input class="fr-input" aria-describedby="given-6927-messages" name="given-name" autocomplete="given-name" id="given-6927" spellcheck="false" type="text">
<div class="fr-messages-group" id="given-6927-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-messages-group" id="firstname-fieldset-6928-messages" aria-live="assertive">
</div>
</fieldset>
</div>
<div class="fr-fieldset__element">
<div class="fr-checkbox-group fr-checkbox-group--sm">
<input onclick="const fieldset = document.getElementById('firstname-fieldset-6928');
if (this.checked) fieldset.setAttribute('disabled', '');
else fieldset.removeAttribute('disabled');
" name="firstname-disabled" id="disabler-6929" type="checkbox" aria-describedby="disabler-6929-messages">
<label class="fr-label" for="disabler-6929">
Je n'ai pas de prénom
</label>
<div class="fr-messages-group" id="disabler-6929-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-messages-group" id="name-international-6920-messages" aria-live="assertive">
</div>
</fieldset>
<fieldset class="fr-fieldset" id="name-international-6945" aria-labelledby="name-international-6945-legend name-international-6945-messages">
<legend class="fr-sr-only" id="name-international-6945-legend">
Nom
</legend>
<div class="fr-fieldset__element">
<div class="fr-select-group">
<label class="fr-label" for="country-6946">
Pays
</label>
<select class="fr-select" aria-describedby="country-6946-messages" id="country-6946" name="country">
<option value="" selected disabled hidden>Sélectionner une option</option>
<option value="FR">France</option>
<option value="DE">Allemagne</option>
<option value="IT">Italie</option>
<option value="ES">Espagne</option>
<option value="GB">Royaume-Uni</option>
</select>
<div class="fr-messages-group" id="country-6946-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6955">
<label class="fr-label" for="family-name-6947">
Nom
</label>
<input class="fr-input" aria-describedby="family-name-6947-messages" name="family-name" autocomplete="family-name" id="family-name-6947" spellcheck="false" type="text">
<div class="fr-messages-group" id="family-name-6947-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-fieldset__element">
<fieldset class="fr-mb-n4v fr-fieldset" id="firstname-fieldset-6953" disabled aria-labelledby="firstname-fieldset-6953-legend firstname-fieldset-6953-messages">
<legend class="fr-sr-only" id="firstname-fieldset-6953-legend">
Prénom(s)
</legend>
<div class="fr-fieldset__element">
<div class="fr-input-group" id="input-group-6956">
<label class="fr-label" for="given-6952">
Prénom
</label>
<input class="fr-input" aria-describedby="given-6952-messages" name="given-name" autocomplete="given-name" id="given-6952" spellcheck="false" type="text">
<div class="fr-messages-group" id="given-6952-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-messages-group" id="firstname-fieldset-6953-messages" aria-live="assertive">
</div>
</fieldset>
</div>
<div class="fr-fieldset__element">
<div class="fr-checkbox-group fr-checkbox-group--sm">
<input onclick="const fieldset = document.getElementById('firstname-fieldset-6953');
if (this.checked) fieldset.setAttribute('disabled', '');
else fieldset.removeAttribute('disabled');
" checked name="firstname-disabled" id="disabler-6954" type="checkbox" aria-describedby="disabler-6954-messages">
<label class="fr-label" for="disabler-6954">
Je n'ai pas de prénom
</label>
<div class="fr-messages-group" id="disabler-6954-messages" aria-live="assertive">
</div>
</div>
</div>
<div class="fr-messages-group" id="name-international-6945-messages" aria-live="assertive">
</div>
</fieldset>