Notifications
Announcements
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.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 765 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 272