Akshay Bokade
Akshay Bokade
FFilament
Created by Aravind Ram on 2/20/2024 in #❓┊help
Infolist Custom ViewEntry added form field validation.
@Dan Harrin Maybe this will clear the picture, https://discord.com/channels/883083792112300104/1206537836216451123 Here, when we click on the action the data present in the repeatable entry is getting wiped out.
13 replies
FFilament
Created by Aravind Ram on 2/20/2024 in #❓┊help
Infolist Custom ViewEntry added form field validation.
@Dan Harrin Do you know about this issue? It sounds like a bug.
13 replies
FFilament
Created by ElCoco on 9/11/2023 in #❓┊help
Why this RepeatableEntry code doesn't work as expected
@ElCoco I am having same issue. You can do this also like, ->action(function (array $data, $record) { dd($record); But the problem is, if there are more than one records, it returns the last one only. Do you know how to overcome this issue?
5 replies
FFilament
Created by Akshay Bokade on 11/6/2023 in #❓┊help
Restore action test not working
Fixed just need to add ->filterTable('trashed') when we are restoring.
3 replies
FFilament
Created by Akshay Bokade on 10/27/2023 in #❓┊help
How to write tests for create, edit and delete actions of Relation managers
@Leandro Ferreira Perfect. Thank you so much.
5 replies
FFilament
Created by Akshay Bokade on 9/14/2023 in #❓┊help
how can I hide a form field in first repeater
Yes
14 replies
FFilament
Created by Akshay Bokade on 9/14/2023 in #❓┊help
how can I hide a form field in first repeater
$form->schema($this->baseFormSchema($formSpecificComponents));
14 replies
FFilament
Created by Akshay Bokade on 9/15/2023 in #❓┊help
Copy contents of first repeater fields to another
Ok let me try
11 replies
FFilament
Created by Akshay Bokade on 9/15/2023 in #❓┊help
Copy contents of first repeater fields to another
Yo, So Mr. Luffy, Can you show me how to do this, a code snippet will be more helpful.
11 replies
FFilament
Created by Akshay Bokade on 9/15/2023 in #❓┊help
Copy contents of first repeater fields to another
@krekas Can you please show me how to do this?
11 replies
FFilament
Created by Akshay Bokade on 9/14/2023 in #❓┊help
how can I hide a form field in first repeater
@pboivin
14 replies
FFilament
Created by Akshay Bokade on 9/14/2023 in #❓┊help
how can I hide a form field in first repeater
Yes
14 replies
FFilament
Created by Akshay Bokade on 9/15/2023 in #❓┊help
Copy contents of first repeater fields to another
@awcodes Not exactly. Because I don't want to copy the data of all fields, only few fields data are required to get copied.
11 replies
FFilament
Created by Akshay Bokade on 9/15/2023 in #❓┊help
Copy contents of first repeater fields to another
@krekas Can you please show me how. Let say this is my code inside repeater Forms\Components\Textarea::make('home_address.address1') ->label('Address 1') ->required(), Forms\Components\Textarea::make('home_address.address2') ->label('Address 2'),
11 replies
FFilament
Created by Akshay Bokade on 9/14/2023 in #❓┊help
how can I hide a form field in first repeater
-------------------- @pboivin and this component will return to repeater Repeater::make('applicants') ->relationship() ->schema($repeaterComponents) ->itemLabel('test'),
14 replies
FFilament
Created by Akshay Bokade on 9/14/2023 in #❓┊help
how can I hide a form field in first repeater
@pboivin public function form(Form $form): Form { $formSpecificComponents = [ Forms\Components\Grid::make(3) ->schema( [ Forms\Components\TextInput::make('firstname') ->required() ->label('Firstname') ->required() ->maxLength(255) ->live(), Forms\Components\TextInput::make('lastname') ->required() ->label('Lastname') ->maxLength(255) ->live(), Forms\Components\Select::make('country') ->options(Country::all()->pluck('name', 'id')) ->searchable() ->required(), Forms\Components\Select::make('relationship_with_main') ->label('Relationship with main user') ->options(config('app.relationships')) ->required() ->hidden(function() { static $row = 0; return ++$row === 1; }), Forms\Components\Toggle::make('primary') ->label('Primary Applicant') ->inline(false) ->disabled() ->dehydrated() ] ), ]; return $form->schema($this->baseFormSchema($formSpecificComponents)); }
14 replies
FFilament
Created by Akshay Bokade on 9/14/2023 in #❓┊help
how can I hide a form field in first repeater
sure
14 replies
FFilament
Created by Akshay Bokade on 9/14/2023 in #❓┊help
how can I hide a form field in first repeater
@pboivin The second option worked, but if we change the value of another field (let's say toggle or select field) the hidden field get shown again.
14 replies
FFilament
Created by Akshay Bokade on 8/22/2023 in #❓┊help
Unable to locate a class or view for component [filament-actions::modals].
@Patrick Boivin It worked. thank you so much.
3 replies