I have created system.xml file in my module but it is show me blank
Path:-app/code/Amitshree/Customer/etc/adminhtml/system.xml
Code:-
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="bliss" translate="label" sortOrder="10">
<label>bliss</label>
</tab>
<section id="cust" translate="label" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1">
<class>separator-top</class>
<label>Customer</label>
<tab>bliss</tab>
<resource>Amitshree_Customer::customer_config</resource>
<group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>General Configuration</label>
<field id="your_email_template_field_id" translate="label comment" type="select" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Label Of Your Field</label>
<source_model>Magento\Config\Model\Config\Source\Email\Template</source_model>
<!-- This model return all transactional email template list of magento -->
</field>
</group>
</section>
</system>
</config>
app/code/Amitshree/Customer/etc/email_templates.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
<template id="your_email_template_id" label="Label Of Your Template File" file="your_email_template.html" type="html" module="Amitshree_Customer" area="adminhtml"/>
</config>
<!-- here you define your email template and its template location path-->
app/code/Amitshree/Customer/etc/config.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../Store/etc/config.xsd">
<default>
</default>
</config>
Best Answer
Kindly set your email_templates.xml file under etc folder with below contents,
You need to pass your template with id equals to cust_general_your_email_template_field_id
Remove var/generation folder or generated folder from root.