Hidden input
The hidden input submits a value with the form without showing anything to the user. Use it to carry
a fixed value — a source tag, a tenant id, a redirect target — through the request. Create one with
HiddenInput::make() and set the value with ->value().
HiddenInput::make('source')->value('marketing-site');Because it renders no control, a hidden input has no live preview. It still serializes into the form schema and submits like any other field.
Common options
Section titled “Common options”HiddenInput shares the base field options — see Fields. It is most
often paired with ->value(). For validation, see Validation.