anchor.diff:  								
   								if(submitButton){
   									submitButton.on('click', function(){
  -										<portlet:namespace/>validateRequiredResult(dossierId, processStepId, processWorkflowId);
  -										if(required === true) {
  -											alert('<%= LanguageUtil.get(themeDisplay.getLocale(), "please-upload-dossier-part-required-before-send") %>');
  +										var msg = validateRequiredResult(dossierId, processStepId, processWorkflowId);
  +										if(msg != '') {
  +											alert(msg);
   											return;
   										} else{
   											A.io.request(
  
positive.code: 
  </div>
  
  <aui:script use="aui-base,liferay-portlet-url,aui-io">
  
  	var required = false;
  	
  	Liferay.provide(window, '<portlet:namespace/>validateRequiredResult', function(dossierId, processStepId, processWorkflowId) {
  		
  		var A = AUI();
  		
  		var requiredDossierPartIds = [];
  		
  		var portletURL = Liferay.PortletURL.createURL('<%= PortletURLFactoryUtil.create(request, WebKeys.PROCESS_ORDER_PORTLET, themeDisplay.getPlid(), PortletRequest.ACTION_PHASE) %>');
  		portletURL.setParameter("javax.portlet.action", "validateAssignTask");
  		portletURL.setWindowState('<%=WindowState.NORMAL%>');
  		var loadingMask = new A.LoadingMask(
  			{
  				'strings.loading': '<%= UnicodeLanguageUtil.get(pageContext, "validate") %>',
  				target: A.one('#<portlet:namespace/>pofm')
  			}
  		);
  		
  		loadingMask.show();
  		
  		A.io.request(
  			portletURL.toString(),
  			{
  				dataType : 'text/html',
  				method : 'POST',
  			    data:{
  			    	<portlet:namespace/>dossierId : dossierId,
  			    	<portlet:namespace/>processStepId: processStepId,
  
negative.code: 				{
  					dataType : 'text/html',
  					method : 'POST',
  					sync : true,
  				    data:{
  				    },   
  				    on: {
  