How to perform third-party JS validation when saving entries in CP #10754
-
I'm looking for docs for hooking into an "event" in the CP, before an entry is saved, to run some custom logic, and possibly interrupt/cancel the save action. (The logic I have in mind isn't related to a field that I control, so I can't accomplish this via field UI as far as I know.) I suppose I could just listen for a What's the best way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There’s no provided framework for this. I think your best bet would be to hook into the draft validation, and add validation errors from there. |
Beta Was this translation helpful? Give feedback.
There’s no provided framework for this. I think your best bet would be to hook into the draft validation, and add validation errors from there.