---
title: "Search form and Accommodation selection"
canonical: "https://maestrel-resource-center.refined.site/space/HD/34734515/Search%20form%20and%20Accommodation%20selection"
format: markdown
---
> Macro (excerpt)
> 
> Search form & accommodation selection in HBook – customize fields like number of accommodations, adults/children, thumbnails, price breakdowns and links for the WordPress booking plugin by Maestrel.

## > Macro (anchor)

Search form

Customize the fields of the Search form.

![search-form-multiple.png](media://4b867b3e-c746-44e1-9185-5eee5e76e567)

If you have enabled “Multiple accommodation” in [HBook > Misc > Multiple accommodation settings](https://maestrel.atlassian.net/wiki/spaces/HD/pages/34668635/Misc+settings#multiple-accommodation-booking), you will see the following fields:

1. Set if you wish to have a field for the customer to indicate the **“Number of accommodation”** in the search form
2. Set the **maximum number** for the “Number of accommodation” select

You will then have the following settings for the search form:

3. Set if you wish to have a selection of the **number of “Adults”** in the search form
4. Set if you wish to have a selection of the **number of “Children”** in the search form
5. You can set a **minimum number** for the adult select
6. You can set a **maximum number** for the adult select
7. You can set a **maximum number** for the children select
8. You can override the above settings when a search is for a **specific accommodation type**. Set here if you wish HBook to use the accommodation type occupancy settings instead of the settings above.
9. In the search form, you can use **placeholder** instead of labels


---

## > Macro (anchor)

Accommodation selection form

Customize the Accommodation selection form.

![select-accom.png](media://2e7ef3e9-e70a-4361-93f1-d724149f2db4)

1. Set if you wish to allow customers to **select the accommodation number**. For example, not only can they select the “Double room” but they can as well choose which double room they wish to book among the available ones. You can add an explanation text **HBook > Text > Accommodation selection** if you wish to provide more details at this reservation step.
2. Set if the **title** of the accommodation type should have a **link** to the page used to showcase the accommodation type
3. Indicate if you wish to display a **thumbnail**. The thumbnail is the **featured image** of the post used to showcase the accommodation type
4. Set if the **thumbnail** of the accommodation type should have a **link** to the page used to showcase the accommodation type
5. Indicate the thumbnail **width** in pixels
6. Indicate the thumbnail **height** in pixels
7. Set if a **button** “View accommodation” should be displayed. It will open the page used to showcase the accommodation type in a new tab.
8. Set if any **prices** should be displayed. You always need to set rates for the booking system to work, but you can decide not to show any prices on front-end
9. Set if a **breakdown** of the price should be displayed
10. Set if the **default state** of the price breakdown: if closed, the customer will click to view the price breakdown
11. Set if the **fully detailed** accommodation breakdown should be displayed
12. Set if you wish to display the **number of available accommodation**
13. If you wish to display the number of available accommodation, but only from a specific number, you can set here the **threshold**. The message will be shown only when there are less or equal accommodation left than this threshold.

> ℹ️ If you have **only one** type of accommodation or in a search for a **specific accommodation type**, by default the *accommodation title*, the *accommodation thumbnail* and the *button link* towards the accommodation page are not displayed. You can override this with the parameters of the booking shortcode. See [here](https://maestrel.atlassian.net/wiki/spaces/HD/pages/33456158) for more details.