-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Radio Group Value #757
Comments
@nsbz1 Your code (with a couple of minor additions) works for me: flux-test.blade.php
FluxTest.php
Have you run |
Your test works perfectly for me too! I think the issue is/was my form. I was trying to plug the flux elements into a default Laravel "register" blade posting to a route with csrf. I thought flux could be used on that too. Obviously that isn't the case for each element type or I'm missing something still. I'll just rework the register to use Livewire. Thank you! |
You're welcome, @nsbz1 ! |
PS This wasn't a Flux issue, you can't use Livewire's |
Yeah, I should have caught that when I switched over to the sample code test. FYI, my original setup with Stripe prices/options didn't use any livewire code though.
As long as I can make it work with Livewire, no worries though. Have a nice Thanksgiving! |
Gotcha, @nsbz1. I'm sure you can - I have converted most of the Laravel Jetstream views to use Flux and all works well (thought I'm not using Livewire in those cases, I just 'Fluxified' the Jetstream components, e.g. Thanks, I've had my Thanksgiving ;) (live in Canada). You have a great, Thanksgiving! |
Glad this was partially resolved - thanks @jeffchown Currently Flux form elements don't work outside of staandard Livewire We have an issue open and intend to address this soon: #341 |
The radio cards don't appear to be passing the chosen value, or I'm missing something very obvious. My original setup was using stripe plan_id values, so I dumbed it down to use just your example code and am experiencing the same issue.
I also tested to ensure I was able to use other flux fields in case it was me not loading the js or css properly, but I had no issues capturing values from flux select and input fields when rendered along with the radio cards. I kept the email field to show the syntax I'm using just in case you want to compare. I also did a "Dump and Die" dd($request->all()); first thing in the method called from the form to ensure I wasn't corrupting the incoming values in any way. Just in case, I also tried different variable names without any symbols in the names. Creating new ones like email2 worked as well. The issue appears to be specific to the cards.
Thank you in advance!
The text was updated successfully, but these errors were encountered: