© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
Quin.

put 2 values in to one Textinput

Ello, i have the terms and categories. but i wanted to make a option avaible so you can set the full domain in once
 public static function form(Form $form): Form
    {
        return $form->schema([
            Select::make('categories')
                ->multiple()
                ->options(fn (): array => Category::orderBy('id', 'asc')->pluck('name', 'id')->toArray())
                ->getSearchResultsUsing(fn (string $search): array => Category::where('name', 'like', "%{$search}%")->limit(50)->pluck('name', 'id')->toArray()),
            TagsInput::make('terms'),
            TextInput::make('fulldomain'),
        ]);
    }
 public static function form(Form $form): Form
    {
        return $form->schema([
            Select::make('categories')
                ->multiple()
                ->options(fn (): array => Category::orderBy('id', 'asc')->pluck('name', 'id')->toArray())
                ->getSearchResultsUsing(fn (string $search): array => Category::where('name', 'like', "%{$search}%")->limit(50)->pluck('name', 'id')->toArray()),
            TagsInput::make('terms'),
            TextInput::make('fulldomain'),
        ]);
    }


So like terms '.' categories for example filament.com so it has the term and categorie but in one textinput
Solution
Already fixed it with a other solution 😄 I maked a extra string column and then in a other function seperated the string in to two variables and then worked my way
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

TextInput in edit One to One relationship
FilamentFFilament / ❓┊help
3y ago
How to make TextInput accept only 2 decimals
FilamentFFilament / ❓┊help
2y ago
How to use mask in TextInput
FilamentFFilament / ❓┊help
3y ago