My form type is as follows:
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('Name')
->add('Occupation');
}
My edit.html.twig is as follows:
{% block main %}
<form action="{{ path('admin_artists_edit', {'id': artist.id}) }}" method="post" {{ form_enctype(artistForm) }}>
{{ form_errors(artistForm) }}
{{ form_row(artistForm.name) }}
{{ form_rest(artistForm) }}
<input type="submit" />
</form>
{% endblock %}
Is there any way to make the Occupation field as a searchable drop down list?Any ideas would be aprreciated