diff --git a/packages/features/bookings/lib/getBookingResponsesSchema.ts b/packages/features/bookings/lib/getBookingResponsesSchema.ts index a2357ca243..3045bc1977 100644 --- a/packages/features/bookings/lib/getBookingResponsesSchema.ts +++ b/packages/features/bookings/lib/getBookingResponsesSchema.ts @@ -236,7 +236,7 @@ function preprocess({ } if (bookingField.type === "phone") { - if (!(await phoneSchema.safeParseAsync(value)).success) { + if (!bookingField.hidden && !(await phoneSchema.safeParseAsync(value)).success) { ctx.addIssue({ code: z.ZodIssueCode.custom, message: m("invalid_number") }); } continue;