count the number of new records to be saved in a model thru javascript

Hi,

How to count the number of new records to be saved in a model thru javascript snippet? Because in the settings, I can only know if the model has unsaved changes. 

Thanks,
Roy

You can count them by looping through the records and counting how many have less then 15 characters for an ID. :wink:

Thank you! I’ll check this one