Page properties dialog validation on 6.4
All,
I want to validate if a proeprty value exists prior to saving page properties.
Tried below but although it submits the form just stays in its place showing the save and cancel buttons while i want it to take me out of the screen.
Tried $propertiesForm.submit();
Kindly let me know
(function($document, $) {
"use strict";
//form id defined in /libs/wcm/core/content/sites/properties/jcr:content/body/content/content
var PROPERTIES_FORM = "cq-sites-properties-form";
$document.on("foundation-contentloaded", function(){
$("#shell-propertiespage-doneactivator").on('click', function(e){
//validate
});
});
});