Live update

i have a amount field that keep amount
and i have a button that pays the amount that has been entered

i want to live update the button lable to the input amount

TextInput::make('amount'),

protected function getFormActions(): array
{
return [
$this->getSaveFormAction()
->label(function(){
return "Pay Now $" . ;
})

];
}
Was this page helpful?