How to get contact us email from get category content tab form select drop down attribute in Magento 2.3.1

form_select category custom attribute how to get contact us from there.


$eavSetup->addAttribute(\Magento\Catalog\Model\Category::ENTITY, 'form_select', [
        'type'         => 'int',
        'label'        => 'Form Select',
        'input'        => 'select',
        'sort_order'   => 130,
        'source'       => Template::class,
        'global'       => ScopedAttributeInterface::SCOPE_STORE,
        'visible'      => true,
        'required'     => false,
        'user_defined' => false,
        'default'      => '1',
        'group'        => 'Content',


<field name="form_select">
        <argument name="data" xsi:type="array">
            <item name="options" xsi:type="object">Vendor\Module\Model\Source\Template</item>
            <item name="config" xsi:type="array">
                <item name="required" xsi:type="boolean">false</item>
                <item name="validation" xsi:type="array">
                    <item name="required-entry" xsi:type="boolean">false</item>
                <item name="sortOrder" xsi:type="number">90</item>
                <item name="dataType" xsi:type="string">string</item>
                <item name="formElement" xsi:type="string">select</item>
                <item name="label" translate="true" xsi:type="string">Form Select</item>

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.