How to get field value in a phoenix form?

when I write:

<%= input f, :field %>

the field gets automatically populated with the value.

but when I create my own field I do not know how to populate it myself,

There’s input_value(f, :field)


thanks, but is it possible to do input_value for nested forms?

1 Like