You need to sign in to do that
Don't have an account?
TheBoot
Is there an easy way to count the number of custom fields I am using?
Short of going through them one by one on screen...is there a counter somewhere, or a report that I can run?
Thanks!
-Brandy
var fields = des.getArray("fields");
var count = 0;
for (var i=0; i<fields.length; i++) {
if(fields[i].name.match(/.__c/) != null){
count++;
}
}
alert(count);
The javascript code above will give you the number of custom fields.
You can easily run this in the debug shell.
1. you can create an SControl with the above code and run it.
See Ajax Toolkit docs for details.
2. You can install this AppExchange app.
Then follow these steps to run the above code.
Select Ajax Tools app, Ajax Tools Tab and click to open link at the top.
Click the the Shell Icon on the top-right.
Select the Multi-Line toolbar icon.
Cut and paste the above code, in the text box.
Then Ctrl-enter to run this code.
Thanks Cheenath,
It still looks a little over my head, but definitely some stuff to read and learn about. Thank you so much for your help!
-Brandy