Ali Abbas
Ali Abbas
FFilament
Created by Ali Abbas on 1/4/2024 in #❓┊help
I have a OrderResource i want to have different forms for each create and edit order page?
@bakriawad thank you
9 replies
FFilament
Created by Ali Abbas on 1/4/2024 in #❓┊help
I have a OrderResource i want to have different forms for each create and edit order page?
@DrByte i have wizards on create form and on edit form i have tabs therefore i want this condition or something like from which i can understand now it is edit module or create ?
9 replies
FFilament
Created by Ali Abbas on 11/14/2023 in #❓┊help
How to conditionally set a field as non-required based on the value of another field?
@ModestasV thank you this works 😊
4 replies
FFilament
Created by Ali Abbas on 9/25/2023 in #❓┊help
how to make a link field when user click on this it will redirect to the link?
also another way is TextInput::make('Link') ->url() ->suffixAction(fn (?string $state): Action => Action::make('visit') ->icon('heroicon-s-external-link') ->url( filled($state) ? "{$state}" : null, shouldOpenInNewTab: true, ), ) ->hidden(fn (Closure $get) => $get('supplier_id') == '') ->columns(1),
14 replies
FFilament
Created by Ali Abbas on 9/25/2023 in #❓┊help
how to make a link field when user click on this it will redirect to the link?
@Patrick Boivin thanks this is working fine by using Placeholder
14 replies
FFilament
Created by Ali Abbas on 9/25/2023 in #❓┊help
how to make a link field when user click on this it will redirect to the link?
protected function mutateFormDataBeforeFill(array $data): array using this in edit page for data to populate
14 replies
FFilament
Created by Ali Abbas on 9/25/2023 in #❓┊help
how to make a link field when user click on this it will redirect to the link?
@NÕØBÎTÅ Tabs\Tab::make('Supplier')->schema([ Repeater::make(name: 'productSuppliers') ->relationship() ->schema($this->_tabSupplierFields()) ->columns(3) ]), // End Supplier tab
14 replies
FFilament
Created by Ali Abbas on 9/25/2023 in #❓┊help
how to make a link field when user click on this it will redirect to the link?
i am using use Filament\Forms\Components\Tabs;
14 replies
FFilament
Created by Ali Abbas on 9/25/2023 in #❓┊help
how to make a link field when user click on this it will redirect to the link?
can you plz provide me a example
14 replies
FFilament
Created by Ali Abbas on 9/25/2023 in #❓┊help
how to make a link field when user click on this it will redirect to the link?
@Patrick Boivin i am setting vlaue in link field from Select how can i use this value in href="..."
14 replies
FFilament
Created by Ali Abbas on 9/25/2023 in #❓┊help
how to make a link field when user click on this it will redirect to the link?
@Patrick Boivin i am just want this as a text not field or icon when user click on this it should show in next tab i am using like this Select::make('supplier_id') ->label('Supplier') ->options(Supplier::all()->pluck('supplier_name', 'id')) ->required() ->afterStateUpdated(function (Closure $set, $state) { if ($state !== '') { $supplier = Supplier::find($state); if ($supplier) { $set('Link', $supplier->website); } } }) ->searchable() ->reactive() ->columns(2), TextInput::make('Link') ->hidden(fn (Closure $get) => $get('supplier_id') == '') ->columns(1),
14 replies
FFilament
Created by Ali Abbas on 9/6/2023 in #❓┊help
I have a ViewColumn in getTables and i have 3 columns inside this view how can i make it searchable
@daisy21 here is the code of product_id.blade.php <div class="text-[10px] whitespace-normal ml-3"> @php $asin = ($getRecord()->asin) ? $getRecord()->asin :' -'; $upc = ($getRecord()->upc ) ? $getRecord()->upc : ' -'; $fnsku = ($getRecord()->fnsku) ? $getRecord()->fnsku : ' -'; @endphp @if($fnsku) <ul class="max-w-md space-y-1 list-none list-inside "> <li class="text-xs"> <strong>ASIN: </strong>{{$asin}} </li> <li class="text-xs"> <strong>FNSKU:</strong>{{$fnsku}} </li> <li class="text-xs"> <strong>UPC:</strong>{{$upc}} </li> </ul> @endif </div>
8 replies
FFilament
Created by Ali Abbas on 9/6/2023 in #❓┊help
I have a ViewColumn in getTables and i have 3 columns inside this view how can i make it searchable
@daisy21 yes sure i will send you in a while
8 replies
FFilament
Created by Ali Abbas on 9/14/2023 in #❓┊help
How to enable or disable fields based on select in edit page ?
😊
10 replies
FFilament
Created by Ali Abbas on 9/14/2023 in #❓┊help
How to enable or disable fields based on select in edit page ?
@hugomyb this is working perfectly thanks
10 replies
FFilament
Created by Ali Abbas on 9/14/2023 in #❓┊help
How to enable or disable fields based on select in edit page ?
@hugomyb i am checking w8t
10 replies