lara-zeus / bolt

form builder for your users, with so many use cases
https://larazeus.com/bolt
MIT License
188 stars 34 forks source link

[Bug]: #222

Closed craigvc closed 10 months ago

craigvc commented 10 months ago

What happened?

When trying to create a new field the user is unable to choose conditional field options till after the field is saved

How to reproduce the bug

When trying to create a new field the user is unable to choose conditional field options till after the field is saved

Package Version

2.1

PHP Version

8.2

Laravel Version

10.0

Which operating systems does with happen with?

macOS

Notes

No response

atmonshi commented 10 months ago

thank you Craig, for the report and the support :)

this is a known limitation for the conditional visibility, I can't access other fields and their values when they haven't been saved to the DB yet.

I had some attempts to find better ways but none of them works perfectly

for now I can disable it and add a note if this can help you and I will work on it to make it work in create form

thanks again.

craigvc commented 10 months ago

No dont delete it, we can just add a note to the user to save the record, though a thought though couldn't you autosave the record when the toggle is activated? or autosave to a temp table?

atmonshi commented 10 months ago

did a rewriteI for all sections and fields to be as modal. this also fix the conditional visibility, instead reading the fields from the form instead from the DB. am still testing this, but so far all good. and will be merge soon.

if you want to test it and give any feedback I appreciate it, you can use the branch #225

atmonshi commented 10 months ago

great news, this should be fixed with v3, please notice that from now on you need filament v3.1 if you already there, the upgrade should be easy

feel free to open new issue if you have any bugs or more questions :)