function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
KC0798KC0798 

Referencing fields - confused!

Hi, I notice several posts pointing to some fields, eg.
 
 
how would I know that there is a acc18street field under account? Where do I find this info?
 
If I have a customer website field created under User, eg. Website_c
 
how would I reference this in a similar code? Like this?
 
 
Need some pointers, am a little confused with the references.
 
Many Thanks!
KC
 
 
werewolfwerewolf
Those fields are standard fields.  Their names are assigned somewhat randomly and could change between releases, although they don't change frequently.  To discover the field name in this manner you'd have to use something like the Firefox Web Developer plugin to discover the name of the edit box.  It's tricky.
 
With a custom field it's even trickier.  The same web developer trick as above applies, but the name is going to be much longer and not human readable.  Plus it's going to be specific to your org, because it will actually have an ID embedded in it.
KC0798KC0798
Thanks, at least now I wouldn't be hunting aimlessly ;-)