Hristo Laskov
Confirm selecting entry in Select if validation not passed
Hello, I have the following use case I am trying to solve - and any help will be appreciated.
I have a model - Voucher - which has expiration date. Vouchers can be refunded - and in order to do so, I have a user role Admin, which can select vouchers with multiselect - by searching them via ID.
The issue come from the fact that before being able to select the voucher I need to check the expiration date of the record to be selected in the model - and if the voucher has expired, I need to show some modal or other input, asking the admin to confirm that the voucher is to be added for refunding. Else, I should soft delete the record.
Any ideas on how I can make this happen? Thanks!
1 replies