anchor.diff:    </view:buttonPane>
     <script type="text/javascript">
       (function() {
  -      const isPopin = window.opener == null;
  -      const $parentWindow = isPopin ? window : window.opener;
  -      const formName = '${formNameErrorDataProvider}';
  +      const displayedIntoPopup = !!window.opener;
  +      let submitAutomaticallyAuthorized = displayedIntoPopup;
  +      let $parentWindow = window;
  +      let $errorFormProvider = $parentWindow.document.querySelector('form[name="${formNameErrorDataProvider}"]');
  +      while (!$errorFormProvider && !!$parentWindow.opener) {
  +        $parentWindow = $parentWindow.opener;
  +        $errorFormProvider = $parentWindow.document.querySelector('form[name="${formNameErrorDataProvider}"]');
  +      }
  +      if (!$errorFormProvider) {
  +        submitAutomaticallyAuthorized = false;
  +        $parentWindow = window;
  +        let $stackInput = $parentWindow.document.querySelector('input[name="stack"]');
  +        while (!$stackInput && !!$parentWindow.opener) {
  +          $parentWindow = $parentWindow.opener;
  +          $stackInput = $parentWindow.document.querySelector('input[name="stack"]');
  +        }
  +        if (!!$stackInput) {
  +          $errorFormProvider = $stackInput.parentElement;
  +          while ($errorFormProvider.tagName.toLowerCase() !== 'form') {
  +            $errorFormProvider = $errorFormProvider.parentElement;
  +          }
  +        }
  +      }
         window.errorManager = new function() {
           let __detailed = 'start';
           let $msg = window.document.querySelector('.error-container .message-slot');
  
positive.code:             $action.innerHTML = '${minimizeLabel}';
              __detailed = true;
            }
            if (!isPopin) {
              setTimeout(function() {
                currentPopupResize();
                window.focus();
  
negative.code:       };
        <c:if test="${not (action eq 'NOBack')}">
        whenSilverpeasEntirelyLoaded().then(function() {
          if (submitAutomaticallyAuthorized) {
            setTimeout(function() {
              $errorFormProvider.submit();
            }, 0);
          }
        });
  