Hi
I have below Modal Popup. I want if From Date < Date of Request then message in Modal Popup should appear. It should not go back to previous page.
SQL
Select Mentor
--%>
Select Student
Date Of Request *
Start Date *Thanks

Rajkiran SwainRank #165 · 14.4K reputationPosted Apr 6, 2023, 2:54 AM EDT
Rajkiran SwainRank #165 · 14.4K reputationPosted Apr 6, 2023, 1:18 AM EDT
To achieve your requirement, you can add a validation function and call it on the click event of the button that opens the modal popup. If the validation fails, you can show an alert message in the modal popup, and prevent it from closing. Here's an example code snippet that you can use:
function validateDates() { var fromDate = new Date(document.getElementById('').value); var requestDate = new Date(document.getElementById('').value); if (fromDate Open Modal Modal Title Modal Body Text ClosePlease let me know if you find my answer helpful by accepting it.
Ramco RamcoRank #462 · 5.4K reputationPosted Apr 6, 2023, 2:48 AM EDT
Hi Rajkiran
On below lnkbreak click i want that it should check. What i should change in below code
Thanks