{% import '_includes/forms' as forms %}

{% set forms = element.groups %}

{{ forms.selectField({
    label: 'Form' | t('feed-me'),
    instructions: 'Choose the form you want to save your feed data into.' | t('feed-me'),
    id: 'elementGroup-' ~ elementType,
    name: 'elementGroup[' ~ elementType ~ ']',
    options: craft.feedme.getSelectOptions(forms, 'title'),
    value: feed.elementGroup[elementType] ?? '',
    required: true,
}) }}