Allow User 5 minutes to edit Comment?

In a Forum application I can think of several ways to give a User a set number of minutes to post a Comment, then display that
"You have X minutes to correct or change this comment before it is Saved permanently"

Including using the server’s

record added

timer to set the local browser’s javascript countdown to finally disable the save action on this comment.

What is the most foolproof sequence used in today’s forum software that Wappler could easily duplicate?

Thank you!

@NewMedia You would probably also want to have a check on the server action for the time last edited if you want to ensure that no user can edit after the set period. Otherwise the user could just ping the API with the updated message or edit the HTML and undo the disable and still post.

Exactly.