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:       };
        <c:if test="${not (action eq 'NOBack')}">
        whenSilverpeasEntirelyLoaded().then(function() {
          if (!isPopin) {
            setTimeout(function() {
              $parentWindow.document[formName].submit();
            }, 0);
          }
        });
  
negative.code:         let $detailedMsg = window.document.querySelector('.error-container .detail-slot');
          let $stack = window.document.querySelector('.error-container .stack-slot');
          let $action = window.document.querySelector('.error-container .action');
          $msg.textContent = $errorFormProvider.message.value;
          let $parentExtraMessageInput = $errorFormProvider.messageExtra;
          if ($parentExtraMessageInput && StringUtil.isDefined($parentExtraMessageInput.value)) {
            $msgExtra.textContent = $parentExtraMessageInput.value;
            $msgExtra.parentElement.classList.remove('hide');
          } else {
            $msgExtra = undefined;
          }
          $detailedMsg.textContent = $errorFormProvider.detailedMessage.value;
          $stack.value = $errorFormProvider.stack.value;
          this.switchDisplay = function() {
            if (__detailed === 'start') {
              __detailed = false;
  