anchor.diff:  			'<portlet:namespace/>updateDossierStatus',
   				function(actionURL) {
   					var A = AUI(); 
  -					// validate dossier part required
   					
  -					var requiredDossierPart = A.one('#<portlet:namespace/>requiredDossierPart');
  +					var required = false;
   					
  -					if(requiredDossierPart) {
  -						if(requiredDossierPart.val().toString().length == 0) {
  +					var requiredDossierParts = A.all('#<portlet:namespace/>requiredDossierPart');
  +					
  +					if(requiredDossierParts) {
  +						
  +						requiredDossierParts.each(function(requiredDossierPart){
  +							var requiredDossierPartIds = requiredDossierPart.val().trim().split(",");
  +							if(requiredDossierPartIds != ''){
  +								requiredDossierPartIds.each(dossierPartId){
  +									console.log(dossierPartId);
  +									if(parseInt(dossierPartId) > 0){
  +										required = true;
  +										var row = A.one('.dossier-part-row .dpid-' + dossierPartId);
  +										if(row){
  +											row.attr('style', 'color:red');
  +										}
  +									}
  +								}
  +							}
  +						});
  +						
  +						
  +						if(required === true) {
  +							alert('<%= LanguageUtil.get(themeDisplay.getLocale(), "please-upload-dossier-part-required-before-send") %>');
  +						} else {
   							location.href = '<%= updateDossierStatusURL %>';
  -						} else {
  -							alert('<%= LanguageUtil.get(themeDisplay.getLocale(), "please-upload-dossier-part-required-before-send") %>');
   						}
   					}
   				},
  
positive.code: %>
  
  <%@page import="com.liferay.portal.kernel.language.UnicodeLanguageUtil"%>
  <%@page import="org.opencps.backend.util.BackendUtils"%>
  <%@page import="com.liferay.portal.kernel.language.LanguageUtil"%>
  <%@page import="com.liferay.portal.kernel.log.Log"%>
  <%@page import="com.liferay.portal.kernel.log.LogFactoryUtil"%>
  <%@page import="com.liferay.portal.kernel.management.jmx.DoOperationAction"%>
  <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
  <%@page import="com.liferay.portal.kernel.util.Constants"%>
  <%@page import="com.liferay.portal.kernel.util.HtmlUtil"%>
  <%@page import="com.liferay.util.dao.orm.CustomSQLUtil"%>
  <%@page import="java.util.ArrayList"%>
  <%@page import="java.util.List"%>
  <%@page import="javax.portlet.PortletURL"%>
  <%@page import="org.opencps.accountmgt.model.Business"%>
  <%@page import="org.opencps.accountmgt.model.Citizen"%>
  <%@page import="org.opencps.accountmgt.search.BusinessDisplayTerms"%>
  <%@page import="org.opencps.dossiermgt.model.Dossier"%>
  <%@page import="org.opencps.dossiermgt.model.DossierPart"%>
  <%@page import="org.opencps.dossiermgt.model.ServiceConfig"%>
  
negative.code: <%@page import="org.opencps.dossiermgt.permissions.DossierPermission"%>
  <%@page import="org.opencps.dossiermgt.RequiredDossierPartException"%>
  <%@page import="org.opencps.dossiermgt.search.DossierDisplayTerms"%>
  <%@page import="org.opencps.dossiermgt.util.DossierMgtUtil"%>
  <%@page import="org.opencps.processmgt.model.ProcessOrder"%>
  <%@page import="org.opencps.processmgt.model.ProcessWorkflow"%>
  <%@page import="org.opencps.processmgt.service.ProcessOrderLocalServiceUtil"%>
  <%@page import="org.opencps.processmgt.service.ProcessWorkflowLocalServiceUtil"%>
  <%@page import="org.opencps.util.ActionKeys"%>
  <%@page import="org.opencps.util.PortletConstants"%>
  <%@page import="org.opencps.util.PortletPropsValues"%>
  <%@page import="org.opencps.util.WebKeys"%>
  