Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input value not passed to the confirmation method #157

Open
jadayash opened this issue Dec 6, 2024 · 0 comments
Open

Input value not passed to the confirmation method #157

jadayash opened this issue Dec 6, 2024 · 0 comments

Comments

@jadayash
Copy link

jadayash commented Dec 6, 2024

public function cancelBookingConfirmation($id) { $this->confirm( 'Please enter the reason for cancellation', [ 'showConfirmButton' => true, 'confirmButtonText' => 'Submit', 'position' => 'center', 'onConfirmed' => 'bookingCanceled', 'input' => 'text', 'inputValidator' => '(value) => new Promise((resolve) => {' . ' if (value) {' . ' resolve();' . ' } else {' . ' resolve("Please enter a reason for cancellation");' . ' }' . '})', 'inputAttributes' => [ 'placeholder' => 'Enter your reason here...', 'id' => $id, ] ]); }

The input value is not passed to the confirmation method. How can i handle this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant