Is it possible to make select input invisible but send the default value with the form submit ?
Is it possible to make select input invisible but send the default value with the form data on submit ?
5 Replies
Hi, do you have an example what you try to do? Why do u want to use a Select instead of Hidden or other Field with visible() and dehydrated() ?
Here if user is logged in then User input should be hide but userId should be sent.

better to make it disabled and set the value before saving depend if you're on a page or a resource
or use
dehydrateStateUsing
Or hidden input?
You should use the mutateDataBeforeSave method.