I have a client with many fields, sections and tabs in the contact record.
In one particular section the client wants to display a bunch of fields that are pertinent to that tab. So I’m just outputting the values, which seems to be working like:
However, this strategy does not seem to be working with email1.
I get it’s an array of many emails possibly, I’d like to grab the first one and/or the primary one. Can this be achieved without writing function to populate the custom code (I’m sure I can do that, but if there is s simpler way to get it I’d like to do that)
If I recall correctly, email1 is not an array with several emails, it is a single email (the first one or the main one, I’m not sure how it picks).
So my first expectation would be that you could just use the field and get an email address, as long as one is defined.
But it is a special field, with special cases for handling it in the code, so I guess that if you don’t get it filled in at that point, you would need to dive into the code building the screen to see what’s happening - which might not be easy.