Display the API Name of fields on a record page

2-minute read
Named credentials

When viewing aregistration , you might often wonder what the API Name is for a field in a Page Layout or Dynamic Form. This article will show you an efficient way to display the API Name of your fields on the registrationpage.

To begin, you can create a new bookmark in your Google Chrome browser by following these simple steps:

Access the "Bookmarks Manager" in your Chrome browser.

Right-click and select the "Add to favorites" option.

In the "Name" field, give your favorite a name: Show Field Api Name

 

In the "URL" field, paste the JavaScript script below:

[fusion_syntax_highlighter theme= »hopscotch » language= »javascript » line_numbers= »yes » line_wrapping= »scroll » copy_to_clipboard= »yes » copy_to_clipboard_text= » » hide_on_mobile= »small-visibility,medium-visibility,large-visibility » class= » » id= » » font_size = » » border_size = » » border_color = » » hue= » » saturation= » » lightness= » » alpha= » » border_style= » » background_color= »#000000″ line_number_background_color= »#000000″ line_number_text_color= »#FFFFFF » margin_top= » » margin_right= » » margin_bottom= » » margin_left= » »]amF2YXNjcmlwdDogKCgpID0+=[/fusion_syntax_highlighter]

 

Once you've created this favorite, you're ready to display the API Name of your fields. When you're on a record, simply click on the favorite you just created.

 

From then on, you will see the API Name of the field displayed next to the corresponding label on the registration page.This method will allow you to better understand the technical details of the fields and identify them more easily.

You can view my other articles here or other blog posts here.

Also read on the blog