I have created a custom module for this. but its showing Id in database and grid also, in form only its showing label.
how i can get website label instead of website id in grid. please help. This is my prepare form code:
$fieldset->addField(
'website',
'select',
[
'name' => 'website',
'label' => __('Associate to Website'),
'title' => __('Associate to Website'),
'required' => true,
'values' => $this->_systemStore->getWebsiteValuesForForm(),
]
);
This is a my grid column code:
<column name="website">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">text</item>
<item name="label" xsi:type="string" translate="true">Website</item>
</item>
</argument>
</column>