Hi, I have achieved this by using validator , below code will convert caps into lower case and also converts _ into -. You can add additional logic as per your need $(window).adaptTo("foundation-registry").register("foundation.validation.validator", { selector: ".pageName", validate: function(el) ...