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

{% set productTypes = element.groups %}

{{ forms.selectField({
    label: "Commerce Product Type"|t('feed-me'),
    instructions: 'Choose the Commerce product type you want to to save your feed data into.'|t('feed-me'),
    id: 'elementGroup-' ~ elementType,
    name: 'elementGroup[' ~ elementType ~ ']',
    options: craft.feedme.getSelectOptions(productTypes),
    value: feed.elementGroup[elementType] ?? '',
    errors: feed.getErrors('elementGroup'),
    required: