ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

How to Count Numbers of Attachments


#1

Hi,
I need to count the numbers of attachments attached in the form.
is there any way?
please help.


#2

cur_frm.attachments.get_attachments().length


#3

Thank you very much @ashish-greycube its working.


#4

@ashish-greycube can you please also tell me how to trigger this on when user attach files, currently it is working on refresh event.