web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Lookup Field Font Issue
Power Apps
Suggested Answer

Lookup Field Font Issue

(0) ShareShare
ReportReport
Posted on by

Hi

We are using PCF control to display lookup field as a dropdown list. when a value is selected from the dropdown list, it displayed in bold text. since all other fields values displays in normal font, we have to make the dropdown value to be displayed in normal font as well.

We investigate that and found out that one of the CSS class has font-weight: 600;. when we change the font-weight to 500 (refer to the code below) the value displayed in normal font. however, the issue we encountered now, the CSS class called ".title-481"  is each time when we refresh the form the class is dynamically changing. e.g.: one time it is "title-481", next time "title-380" and next time something else. Therefore, we won't be able to set the font weight to specific class using JavaScript. we are trying to extract the CSS class name from the span tag for the lookup column on form load. But during the form load the field is not loaded so could not extract the right class to set the font-weight. if you have any idea to extract the dynamically changing class using JavaScript, please advise us.

I have the same question (0)
  • Suggested answer
    Khadim Ali Profile Picture
    6 on at
    Note the style settings in these random title classes and replicate the same in your PCF control's style sheet. Then use classes from your control's style sheet instead of power apps classes.
  • SivaR Profile Picture
    32 on at
    When i replaced with this Lookup PCF control , selected value was displayed in normal font.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard