[3.0.0-rc4] - How to show current value in a select form field
Currently I have my select field defined as:
@formField('select', [
'name' => 'work_year',
'label' => 'Year',
'options' => range(date('Y'),1950),
])
The field is showing up and the selected value gets correctly saved to the database.
Also when i click Update while on the page itself in the backend the selected value is showing in the field correctly.
But when I close the page and reopen it in the backend the current value is not showing up.
Thanks for any help or guidance
https://twill.io/docs/3.x/form-fields/select.html2 Replies
Hi @undersound interesting. Do you have any model accessor on that work_year column, potentially?
hi @ifox.dev , sorry for late reply....testing this currently. I don't have any model accessor on that column