I'm making a custom form with some dropdown data a user can select.
The content which get's inserted needs to come from the backend configuration.
This is the form I have made, this form will be shown on the frontend, not the backend.
I have no idea how to insert data in the dropdown above from the admin backend, this is the adminhtml I've already created:
<?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="tab"
translate="label"
sortOrder="1000">
<label>UT</label>
</tab>
<section id="trendsquare_module"
translate="label"
type="text"
sortOrder="1"
showInDefault="1"
showInWebsite="1"
showInStore="1">
<label>Module settings</label>
<tab>tab</tab>
<resource>AdminTabs::config</resource>
<group id="trendsquare_module"
translate="label"
type="text"
sortOrder="2"
showInDefault="1"
showInWebsite="1"
showInStore="1">
<label>Dropdown Data</label>
<field id="dropdown" translate="label" type="editablemultiselect" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Dropdown Data</label>
</field>
</group>
</section>
</system>
</config>
Which gives me this as a result: