# Hide prefilled fields in the Scheduler booking form

Source: https://developer.nylas.com/docs/changelogs/2026-09-22-javascript-nylas-web-elements-v2-6-0/

## Added

- **Hide prefilled guest fields in the Scheduler booking form.** `bookingInfo.primaryParticipant` now accepts `nameHidden` and `emailHidden`. When set, the field is left out of the booking form entirely while the prefilled value is still submitted with the booking. This is useful when you already know who's booking and don't want to ask for the same details again. Use the existing `nameReadOnly` / `emailReadOnly` instead if you want the value shown but not editable; `hidden` takes precedence over `readOnly`. If a hidden field has no prefilled value to fall back on, it's rendered anyway so a booker is never left facing a required field with nothing to fill in, and the misconfiguration is logged to the console.

## Fixed

- Prefilled `name` and `email` values are now sanitized before being applied to the booking form.
- Setting `name` or `email` to an empty string now clears a previously seeded value instead of silently retaining it; omitting the field still leaves the current value alone.
- Prefilled values passed through `bookingInfo` are no longer ignored at load time when the Scheduler configuration also supplies a guest name or email.