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
Spencer BerkSpencer Berk 

Lightning FormatedText field value not displaying?

The Tracker Status (Tracker_Status__c) field values are not displaying in my component. All other works display fine. The Tracker Status field value is visible for the Community Plus profiles and is visible after clicking the Contact and viewing the Contact page but won't display in my component as seen below. Any suggestions?
<aura:component controller="DisplayAccountRelatesContactsController" implements="forceCommunity:availableForAllPageTypes" access="global" >
    <aura:attribute name="contacts" type="List" default="[]"/>
    <aura:attribute name="contactCount" type="Integer" default="0"/>
    
    <aura:handler name="init" value="{!this}" action="{!c.init}"/>
    
    <aura:if isTrue="{!not(empty(v.contacts))}">
        <div class="slds-card ">
            <lightning:layout multipleRows="true">
                <lightning:layoutItem padding="around-small" size="8">
                	<lightning:icon iconName="standard:contact" alternativeText="Contact" />
                    <lightning:formattedUrl label="{!' Contacts ('+v.contactCount+')'}" value="https://myfinancialcoach.force.com/serviceportal/s/account-contacts-related-list" style="font-weight:bold;" />
                </lightning:layoutItem>
            </lightning:layout>   
            <div style="height: 200px;overflow:auto;">
                <table class="slds-table slds-table_cell-buffer slds-table_bordered">
                	<thead>
                    	<tr>
                        	<th>Contact Name</th>
                            <th>Seat Status</th>
                            <th>Email</th>
                            <th>Tracker Status</th>
                        </tr>
                    </thead>
                    <tbody>
                        <aura:iteration items="{!v.contacts}" var="contact">
                            <tr>
                                <td>
                                	<lightning:formattedUrl value="{!contact.Id}" label="{!contact.Name}" target="" />
                                </td>
                                <td>
                                    <lightning:formattedText value="{!contact.Seat_Status__c}" />
                                </td>
                                <td>
                                    <lightning:formattedText value="{!contact.Email}" />
                                </td>
                                 <td>
                                    <lightning:formattedText value="{!contact.Martial_Status__c}" />
                                </td>
                            </tr>
                        </aura:iteration>
                    </tbody>
                </table>
            </div>
        </div>
    </aura:if>
</aura:component>
User-added image
 
Best Answer chosen by Spencer Berk
Devi ChandrikaDevi Chandrika (Salesforce Developers) 
Hi spencer,
It looks like you are not fetching Martial_Status__c field value in SOQL which you are using in DisplayAccountRelatesContactsController to fetch contacts.Try by adding Martial_Status__c field in SOQL.

Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.

Thanks and Regards