Radio field reactive strange bug when using from custom modal with HasForms

Hello all, I have implemented a SMS credit buy page as a custom page which includes a "Buy Button" on all packs. I want to show a modal from that custom view in order a person to buy it. There exists saved cards module so in the model a person should select whether pay with saved ones or pay with a new one. So, I made radio button reactive from resource which controls two field set's visibility. This approach works perfect on a resource, however when I use it in a modal, the radio button cannot selected when reactive() used. Do you guys know why this occurs? Please check the attached screenshots and video. One of them shows the Resource which implements HasForms and one is from the blade code of the custom page. The video shows the situation. Thanks.
2 Replies
Dan Harrin
Dan Harrin2y ago
where is the $saved_card_radio public property please read the getting started from builder docs
onursahindur
onursahindurOP2y ago
Sorry I could not understand what you mean, saved_card_radio is a field, should I define it in blade also? Basically I want to show a modal from a custom view, but I don't want to code html in blade, I followed this link https://github.com/filamentphp/filament/discussions/3419#discussioncomment-3344533 and I added $this->form in that modal to define it from filamentphp Is this approach wrong?
GitHub
How to use · filamentphp filament · Discussion #3419
Hi i have a complex, custom form page where on a click of a button i want to open a modal with some extra data. Can x-filament::modal be used for this? It's not an action so i need to be opened...
Want results from more Discord servers?
Add your server