2
0

(calCom) Add additional notes prefill option

This commit is contained in:
Baptiste Arnaud
2024-03-06 10:11:49 +01:00
parent 2fb379b102
commit 0f96440cf9

View File

@ -23,6 +23,10 @@ export const bookEvent = createAction({
label: 'Email', label: 'Email',
placeholder: 'johndoe@gmail.com', placeholder: 'johndoe@gmail.com',
}), }),
additionalNotes: option.string.layout({
accordion: 'Prefill information',
label: 'Additional notes',
}),
phone: option.string.layout({ phone: option.string.layout({
accordion: 'Prefill information', accordion: 'Prefill information',
label: 'Phone number', label: 'Phone number',
@ -69,6 +73,7 @@ export const bookEvent = createAction({
email: options.email ?? null, email: options.email ?? null,
layout: parseLayoutAttr(options.layout), layout: parseLayoutAttr(options.layout),
phone: options.phone ?? null, phone: options.phone ?? null,
additionalNotes: options.additionalNotes ?? null,
}, },
content: `(function (C, A, L) { content: `(function (C, A, L) {
let p = function (a, ar) { let p = function (a, ar) {
@ -117,6 +122,7 @@ export const bookEvent = createAction({
config: { config: {
name: name ?? undefined, name: name ?? undefined,
email: email ?? undefined, email: email ?? undefined,
notes: additionalNotes ?? undefined,
location location
} }
}); });