Fork me on GitHub
#keechma
<
2018-06-13
>
mihaelkonjevic06:06:43

@mynomoto the reason why it's nissit is that it's impossible to define a good default behavior. Various backends return errors in different ways, and it's often hard to get them in the per field format. Another question is the management of these errors - for instance when do you remove them? Is it enough to just change the value or do you need to submit again?

mihaelkonjevic06:06:54

The easiest solutions which I used before is to have a server errors field in the form which you manually manage like any othe field and then remove before sending the data to server

mynomoto13:06:21

@mihaelkonjevic Yeah, default behavior is hard. I would not worry about server response format we can always convert to what's needed. But I see your point on form interaction. Thanks for your suggestion, I'm placing server errrors outside the form so I don't have to remove those but can control how I display/remove them.