Skip to main content

Search Form

Return attributes for search form.

note

Search Form is deprecated in themes v3 and above.

Example

<select class="select optional form-control chosen-select" data-placeholder="{{ 'search.form.destination' | t }}" id="search_destination" multiple="multiple" name="destination[]" placeholder="{{ 'search.form.destination' | t }}">
{% for destination in search_form.destinations %}
<option
{% if destination.selected %}
selected="selected"
{% endif %}
value="{{ destination.id }}">
{{ destination.name }} ({{ destination.count }})
</option>
{% endfor %}
</select>

Available attributes:

  • absolute_max_price
  • absolute_min_price
  • amenities
  • basic_amenities
  • bedrooms_range
  • checkin
  • checkout
  • currency
  • destinations
  • display_name
  • display_type
  • guests
  • guests_choices
  • instantly_bookable?
  • length_of_stay
  • min_price
  • min_price_for_stay
  • max_price
  • max_price_for_stay
  • nightly_min_price
  • nightly_max_price
  • length_of_stay
  • primary_destinations
  • rental_types
  • rentals
  • rentals_tags
  • root_destinations
  • selected_destinations
  • selected_primary_destinations
  • selected_rate
  • selected_rentals_tags
  • selected_root_destinations
  • search_url
  • sort_by
  • sort_choices
  • website