Disable adding records up to a date/time |
5/11/2023 02:14:55 | |
PHPRunner General questions | ||
A
alfonso authorDevClub member
I need a form to be disabled until an hour on a given day. Records cannot be added and an informing message appears. Is it possible in phprunner? Thank you |
||
![]() |
Sergey Kornilov admin 5/11/2023 |
Possible. Use an event like BeforeProcess of the Add page. Check the time there and redirect user somewhere or display a message instead of the Add page if no data is allowed to be added. |
|
A
|
alfonso authorDevClub member 5/11/2023 |
I use: if ($fechaActual < $fechaObjetivo) { |
|