Hidden fields not dehydrating
I have a couple of fields in my form in a fieldset like this. This fieldset can be toggled hidden.
When the fields are hidden, they are not properly dehydrated, while I can see that the data is present in $livewire->data:

5 Replies
When the fields were made visible before clicking save, then everything is correctly dehydrated:

->saveRelationshipUsing is also not triggered when the fields are hidden
This is getJournalSelectField for example:
I tried using it without the fieldset, but that gives me the same result
Hidden fields ar enot intended to be included. For true storage of hidden fields you can use Hidden::make() or use mutateafter
Use
->hidden()->dehydratedWhenHidden()
This is it, thank you so much