Position Types

Front End Developer

I need help with the code below. The problem with the code right now is that the options in the select-field only outputs the first letter of each choice. I have setup a custom field (checkbox field – accommodation_select) with ACF. What I want:

– The options in the should show the Titles of the field accommodation_select
– The options in the should only display the selected options
– The value of the options should be passed as parameter to the bookingpage ($form)

<?php $accommodation_type = '';

// If the current page has a setting for type of accommodation, get the value
// If value exists, set it as parameter on the form action to use in the booking page
if (get_field(‘accommodation_select’)) {
$accommodation_type = get_field(‘accommodation_select’);
}