Phoenix LiveView Multi-step Form - Post #7
dbernheisel
started this conversation in
General
Replies: 2 comments 7 replies
-
Hi! I'm interested in what is the correct way of doing the first step, e.g. when a group is chosen displaying only its members (or something)? |
Beta Was this translation helpful? Give feedback.
6 replies
-
I have come to your example and although the explanation is extremely good, I have some doubts:
<div class="container">
<%= form_for(@changeset, phx_validate: :validate, phx_save: :save %>
<%= live_component @socket, WhoComponent, id: "who", event: @event, current_user: @current_user%>
<%= live_component @socket, WhatComponent, id: "what", event: @event, current_user: @current_user%>
</form>
</div>
I'm trying to implement something like this only without the step by step. I separeted view in live_view_components (a giant form)... but no event is fired... Any idea? :( |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://bernheisel.com/blog/liveview-multi-step-form
Have reactions to the post? Let's discuss!
Beta Was this translation helpful? Give feedback.
All reactions