# Booking form fields - unset

**URL:** <https://community.hivepress.io/t/booking-form-fields-unset/5354>\
**Category:** HivePress\
**Created:** [April 15, 2023, 12:48pm UTC](https://community.hivepress.io/t/booking-form-fields-unset/5354 "2023-04-15T12:48:20Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Munchies4U](https://community.hivepress.io/user_avatar/community.hivepress.io/munchies4u/32/5975_2.png) [@Munchies4U](https://community.hivepress.io/u/Munchies4U)\
**Post date:** [April 15, 2023, 12:48pm UTC](https://community.hivepress.io/t/booking-form-fields-unset/5354/1 "2023-04-15T12:48:21Z")

</div>

Hi there HivePress Team

We’ve enabled time based booking as we require the booking days and unset some of the not required fields with a code snippet

```auto
*add_filter(*
*	'hivepress/v1/forms/listing_update',*
*	function( $form ) {*
* unset( $form['fields']['booking_window'] );*
* unset( $form['fields']['booking_min_time'] );*
* unset( $form['fields']['booking_max_time'] );*
* unset( $form['fields']['booking_min_quantity'] );*
* unset( $form['fields']['booking_max_quantity'] );*
* unset( $form['fields']['booking_slot_duration'] );*
* unset( $form['fields']['booking_slot_interval'] );*
* unset( $form['fields']['booking_moderated']);*
* //unset( $form['fields']['booking_min_length'] );*
* //unset( $form['fields']['booking_max_length'] );*
* return $form;*
*	},*
*	1000*
*);*

```

That’s all working on the Add Listing page, however when making a booking with the hp-form–booking-make form, the user still need to set a time as the \_time filed is shown on the form.

We’ve tried unsetting the field by modifying the snippet used above on the listing\_update form but its not unsetting the filed.

This is the snippet we modified:

```auto
*add_filter(*
*	'hivepress/v1/forms/booking-make',*
*	function( $form ) {*
* unset( $form['fields']['_time'] );*
* return $form;*
*	},*
*	1000*
*);*

```

Please assist.

---

_[View the full topic](https://community.hivepress.io/t/booking-form-fields-unset/5354)._
