Validate page properties on save in 6.5
Hi,
I want to validate page properties after saving a page and based on the validations need to show an Error or allow to save that page.
I tried with below JS wherein it failing when ever a required field in page properties is filled and trying to save the page it is saving even it is not a valid case.
$(document).on("foundation-contentloaded", function(e) {
$("#id1, #id2").on("click", function() {
validate();
});
$(".foundation-fixedanchor .coral3-Button--primary").on("click", function() {
validate();
});
$(".foundation-wizard-control .coral3-Button--primary").on("click", function() {
validate();
});
$("#id3").on("change keyup focus", function() {
validate();
});
});
Is there any way that we can do validation after saving the page and show an error alert if it fails?