You can use this dialog validation code to achieve this. Here, we will
be setting either of the input value is null. if another field is
selected using the dropdown. (function(document, $, ns) { "use strict";
$(document).on("click", ".cq-dialog-submit", function(e) {
e.stopPropagation(); e.preventDefault(); var $form =
$(this).closest("form.foundation-form"), selectionDropDown =
$form.find("[name='./selectionDropDown']").val(), message, clazz =
"coral-Button "; if (selectionDropDown == 'selected...