Text Input field with dynamic placeholder

If You know the value of first_name, pass it as a variable in the controller…

:first_name is only an atom, pass it, and use it as @first_name.

If You want to use conditional rendering on the same form… You will need some JS skill… or LiveView, or Drab, or any server side libs that can potentially update DOM.

1 Like