Thnx Chi For your feedback; but i have 3 concerns regarding the following code:
1- zAttmntcount: is it a customized attribute that i should create first before?
2- regarding the Javascript i will open WSP Then Employee form and i will choose java script the past the below script?
3- how shall i combine this method with spel post validation?
Appreciate your patience and kind response
you may use preSaveTrigger() for these purposes. Depending on role and sdm version attachments displaying may vary, you need get attachments count using JavaScript simply checking DOM tree for attachments inputs. Code could be:
function preSaveTrigger() {
// get attachments count using DOM model
if (zAttmntCount > 0)
return true;
else
return false;
}
Also you can combine this method with spel post validation.