blakdronzer
Can we add widget to a form inside schema?
Hi @krekas - well.. i am building an application which accepts a Purchase Order form - this form is going to have all sort of items in the same - The purpose being - need to sho the user as how much is the total invoice amount and the difference remaining after all the items user have added in the repeater !!
13 replies
Option to search or add if not exists
Well - that surely makes my life easy!! let me try that - thank you for your suggestion - other alternative i was thinking of making an custom component using livewire to suffice the need - but this too surely suffices me!! let me give it a shot - will update
5 replies
Need help updating value of hidden field via retrieving value from database and set
i have managed to reach the state where i am able to validate if the value matches of not - but the issue is forcefully invalidating the field for error
25 replies
Need help updating value of hidden field via retrieving value from database and set
Select::make('state_id')
->label('State')
->options(State::all()->pluck('state_name', 'id'))
->searchable()
->afterStateUpdated(function (Set $set, $livewire, ?string $state) {
if(filled($state)) {
$obj = State::where('id', $state)->first();
$state_code = $obj->gst_code;
if (filled('gst_number')) {
$gst_number = $livewire->data['gst_number'];
if (trim(substr($gst_number, 0, 2)) !== $state_code) {
Notification::make()
->title("GST Number dose not match with the selected State.")
->danger()
->send();
}
}
}
})
->reactive(),
25 replies