We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Javascript API - Get field using GetCustomFieldByName

Accepted answer
edited Feb 14, 2017 5:40PM in UI Extensibility 3 comments



I'm trying to retrieve the value of a custom field (Contact) 'ClientGender' using the Javascript API, however I get a value of 'undefined' returned in my alert. The First Name and Last Name are retrieved successfully(standard fields). 

From the file containing images, you'll be able to see that I have

1. Defined a custom field, ClientGender (to be used on custom objects and regular objects)
2. Added a custom field to a Contact tab on my custom object "new_Referral" which is based on Incident
3. Also attached, is what this looks like with a values in the workspace. 

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!