split the lead form name into first_name + last_name (Zoho CRM expects given/family separately)

This commit is contained in:
kpgarrod committed 2026-11-21 09:46:21 +01:00
1 parent 19162e6838
commit cc77b242ae
2 files changed
+6 -3

No files matched your search

+4 -2
View File
@@ -13,7 +13,8 @@ const type = pageId === "for-founders" ? "founders" : "hubs";
const fields =
type === "founders"
? [
{ name: "name", label: strings.field_name, input: "text", required: true },
{ name: "first_name", label: strings.field_first_name, input: "text", required: true },
{ name: "last_name", label: strings.field_last_name, input: "text", required: true },
{ name: "email", label: strings.field_email, input: "email", required: true },
{ name: "stage", label: strings.field_stage, input: "select", options: [
["idea", strings.field_stage_idea],
@@ -26,7 +27,8 @@ const fields =
]
: [
{ name: "organisation", label: strings.field_organisation, input: "text", required: true },
{ name: "name", label: strings.field_name, input: "text", required: true },
{ name: "first_name", label: strings.field_first_name, input: "text", required: true },
{ name: "last_name", label: strings.field_last_name, input: "text", required: true },
{ name: "email", label: strings.field_email, input: "email", required: true },
{ name: "country", label: strings.field_country, input: "text" },
{ name: "programme", label: strings.field_programme, input: "select", options: [