Open EdoanR opened 3 months ago
@EdoanR hey, wanna try my solution and see if it works? By the way, the official documentaion is written in the way where failure on data validation on form submission will wipe out previously entered good data, it was written that way
@EdoanR hey, wanna try my solution and see if it works? By the way, the official documentaion is written in the way where failure on data validation on form submission will wipe out previously entered good data, it was written that way
845
I tried right now and it works! I had to change the State
properties to work, only for the customerId
for now, but seems easy to implement for the other fields too. I still wish there's a better way to do it, looks relatively simple, I will keep this issue opened for now.
I'm not sure if it was intended that way, but I can see it being annoying in a longer form. Is there a way to fix this? It would be perfect for me if only the incorrect field ( or none at all ) reverted to default.
https://github.com/user-attachments/assets/3eb93aa0-1739-4036-a42a-def28dd4e717
Here's the form code ( create-form.tsx ):
The actions ( action.ts )