This topic is locked

Block the Editing

10/8/2022 6:36:59 PM
PHPRunner General questions
Roosevelt author

Hello everyone, I wish you all a great search. To the point. I need to block the editing of a record after two days. Example: A user types an order, after two days that user can no longer sign in to edit. Is this possible in PHPRunner?

Example:

img alt

img alt

Tks for Help.

Sergey Kornilov admin 10/10/2022

The best and the easiest option is to use IsRecordEditable event.

Compare the current date with the original date (calculate diffrence in days) and either allow or disallow the editing. This article can help calculating the date difference.