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
Curtis Mueller 3Curtis Mueller 3 

Adding a field from an object as a description in Developer Console

We have a custom code for our Community, but for some reason our designer didn't add any description text to the initial view.  I've seen how to add a description to it, but I'm not sure how to pull the actual line from the Object.
We have:
<td>{!li.Name}
                        <div style="font-size:0.89em;"><b>Description:</b> Yadda yadda yada.</div>
                    </td>
Is it possible to change the Yadda Yadda yada to, say !li.Description from the object?
Sunad RasaneSunad Rasane

Hi Curtis,

Please use - {!li.Description} in place of Yadda yadda yada.and make sure you query it in the apex.
<td>{!li.Name}
                        <div style="font-size:0.89em;"><b>Description:</b> {!li.Description} </div>
                    </td>

In Apex, if it is Account add in query - [SELECT id, Name ,Description FROM Acount]; or any other sobject.

Please reply if it helps and make sure to mark it as the best answer so it will be helpful for others.
Thanks