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

  • 1
  • Question
  • Updated 9 months ago
  • Answered
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
Photo of Rowel Ventura

Rowel Ventura

  • 424 Points 250 badge 2x thumb

Posted 9 months ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
You can count them by looping through the records and counting how many have less then 15 characters for an ID. ;)
Photo of Rowel Ventura

Rowel Ventura

  • 424 Points 250 badge 2x thumb
Thank you! I'll check this one