Skip to content

Commit

Permalink
⚡ (calCom) Add additional notes prefill option
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 6, 2024
1 parent 2fb379b commit 0f96440
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/forge/blocks/calCom/actions/bookEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export const bookEvent = createAction({
label: 'Email',
placeholder: 'johndoe@gmail.com',
}),
additionalNotes: option.string.layout({
accordion: 'Prefill information',
label: 'Additional notes',
}),
phone: option.string.layout({
accordion: 'Prefill information',
label: 'Phone number',
Expand Down Expand Up @@ -69,6 +73,7 @@ export const bookEvent = createAction({
email: options.email ?? null,
layout: parseLayoutAttr(options.layout),
phone: options.phone ?? null,
additionalNotes: options.additionalNotes ?? null,
},
content: `(function (C, A, L) {
let p = function (a, ar) {
Expand Down Expand Up @@ -117,6 +122,7 @@ export const bookEvent = createAction({
config: {
name: name ?? undefined,
email: email ?? undefined,
notes: additionalNotes ?? undefined,
location
}
});
Expand Down

0 comments on commit 0f96440

Please sign in to comment.