How to connect input form
I want to make the following form inputs connected to each other
the following inputs:
TextInput::make('booking_duration')
->label('Durasi Booking (satuan jam')
->required()
->numeric(),
and after this input is filled as well:
TimePicker::make('start_time')
->label('Waktu Mulai')
->required(),
and then this input will automatic filled:
TimePicker::make('end_time')
->label('Waktu Selesai')
->required()
->reactive(),
so the input end_time will be filled if start_time was prefilled with the start_time being advanced according to its duration
can you explain?
the following inputs:
TextInput::make('booking_duration')
->label('Durasi Booking (satuan jam')
->required()
->numeric(),
and after this input is filled as well:
TimePicker::make('start_time')
->label('Waktu Mulai')
->required(),
and then this input will automatic filled:
TimePicker::make('end_time')
->label('Waktu Selesai')
->required()
->reactive(),
so the input end_time will be filled if start_time was prefilled with the start_time being advanced according to its duration
can you explain?