Dynamic Fields from php
Hello,
Been trying to make dynamic fields from values that comes from the php model
How am I supposed to be making dynamic fields? Considering this does not "disable" the File one making an error when using type as string?
I don't know if this was supposed to be made with livewire, but I guess it should work already?
the hide and disable work fine but really fails to submit
2 Replies
the problem is that the file upload needs an array state
whereas the textarea doesnt uae that
so you need afterStateUpdated() to set the value to be an empty array if the file upload is being used and an empty string if the textarea is used
thanks for the clarification