Select live update problem
I have one Select component and 1 component that I created with ViewField.
Here, when the value I selected with Select is updated, the address variable in ViewField is updated accordingly.
The problem is, each option I select is replaced by the value of the previous option I selected. I have tried many methods and could not find a solution. This is the first time it happens to me. I wonder where am I doing wrong?
Form;
ViewField;
Solution:Jump to solution
Change the view to be with a getter
```php
Section::make('Address Details')
->columnSpan(3)...
3 Replies
Solution
Change the view to be with a getter
Notice we pass it in with a schema closure. you could make section a group if you dont' want to render html etc.
Thank you so much, it’s work! 🤝🏼