Answer the question
In order to leave comments, you need to log in
Is there a ready-made module for the current task?
Is there already a ready-made module for such functionality so that when the user presses the status, then ajax changes the status fields in the database to 0 if 1 or vice versa. Yes, I know it can be done through list_editable, but it's not very user-friendly.
Answer the question
In order to leave comments, you need to log in
There's a dozen lines of code there.
On the form, you intercept the click of the "status" button with the same api.jquery.com/jquery.ajax and send a post request with the status and token of your entry.
And on the server, the request is received and processed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question