Activity Forums Salesforce® Discussions What is the use of UITheme? 

  • Piyush

    Member
    October 21, 2019 at 4:20 am

    Hi,

    UITheme returns the look and feel the user is supposed to see, while $User.UIThemeDisplayed returns the look and feel the user actually sees. For example, a user may have the preference and permissions to see the Lightning Experience look and feel, but if they are using a browser that doesn’t support that look and feel, for example, older versions of Internet Explorer, $User.UIThemeDisplayed returns a different value.

  • Mounica

    Member
    August 4, 2022 at 4:58 am

    Does anyone know how to set that issue in one org ? We have to set classics in vf pages and lightning experiences in aura components. Is there any condition on that? How to fix that issue?

  • Rahul

    Member
    October 28, 2022 at 11:24 am

    UITheme is used to return the look and feel the user is supposed to see, while $User. UIThemeDisplayed returns the look and feel the user actually sees.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos