Preprocessing values for inputs in a Phoenix (LiveView) form

Oh, right - I didn’t read the last note, sorry :sweat_smile:

So the problem is not with decimal at all …

Why you try to access f.data.field? If I remember correctly there are 2 value maps in data and params keys, so if one is nil you should fetch the other one.

Have you tried Phoenix.HTML.Form.input_value instead? It’s doing exactly what I have described above.