<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
?>
<?= $block->getFormHtml() ?>

<?php $scriptString = <<<script
require(['jquery', "mage/mage"], function(jQuery){

    jQuery('#{$block->escapeJs($block->getFormId())}').mage('form').mage('validation');

});
script;
?>
<?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false) ?>
