feat: implement pre-selection for nationality and nation fields by repurposing the placeholder field to store default values

This commit is contained in:
estifanos
2026-09-08 07:01:43 +00:00
parent 0f81f1f199
commit f89ab0fb39
7 changed files with 87 additions and 39 deletions

View File

@@ -104,6 +104,12 @@ export interface FormFieldConfig {
label: Bilingual;
type: FormFieldType;
required?: boolean;
/**
* Hint text — except on NATIONALITY/NATION fields, where the builder puts
* the pre-selected answer here (`en`, as the English demonym or country
* name) and the wizard seeds it into the draft. The server stores it
* unchanged either way, so this stays frontend-only.
*/
placeholder?: Bilingual;
helpText?: Bilingual;
options?: { value: string; label: Bilingual }[];