datepicker state update
i want to select a date in 'plan_started' datepicker and using that date for 'plan_expires'. in filament v2 i used this code and works like i wanted. in v3 it is not works.i look at changes and see the 'closure' was changed to 'Set' and 'Get' but still i could not succeed. how should i change the codes ? thanks
4 Replies
You need to make the first date field reactive()
sorry i delete when i try to figure out. there is reactive() in the working code (v2) but still i couldnt work in (v)
v3
I do exactly this, setting an end date by adding a period to the start date, in v3. So it definitely works. What does debugging tell you? Is the afterStateUpdated() method getting called?
`
and the log `
but i cant see the plan expires date in datepicker
i also try like this for is set method set to the plan_expires `
this is also give a correct log
i solved my problem
when i look again the logs, i think about may the reason date format after the adding year or month
so i did this `
after that when i pick a date in plan started it showed me expire date based on selected option from plan term
thank again