HI @Dolly as per your requirement you need to add your custom login on
dialog submit .Sharing example snippet (this is just a example code,
will not get compiled as is )$(document).on("dialog-ready", function() {
$(document).on("click", ".cq-dialog-submit", function(e) { var $form =
$(this).closest("form.foundation-form"); var message; var fui =
$(window).adaptTo('foundation-ui'), options = [{ id: 'ok', text: 'OK',
primary: true }]; var field1= $form.find("[name*='./field1']").val();
var field2=...