You need to sign in to do that
Don't have an account?
ssoftware
User.UITheme does not work
Hi All,
Created the following simple visualforce page, and then a tab based on this page. Enabled lightning experience and then visited the tab (App Launcher -> Other Items -> this tab). The option "Available for Salesforce mobile apps and Lightning Pages" is also enabled.
The output shows Theme3 instead of Theme4d. What am I doing wrong?
<apex:page showHeader="true" >
{!$User.UITheme}
<br/>
{!$User.UIThemeDisplayed}
</apex:page>
Created the following simple visualforce page, and then a tab based on this page. Enabled lightning experience and then visited the tab (App Launcher -> Other Items -> this tab). The option "Available for Salesforce mobile apps and Lightning Pages" is also enabled.
The output shows Theme3 instead of Theme4d. What am I doing wrong?
<apex:page showHeader="true" >
{!$User.UITheme}
<br/>
{!$User.UIThemeDisplayed}
</apex:page>
If the above suggestion worked, let us know by marking the answer as "Best Answer" right under the comment which will help the rest of the community should they have a similar issue in the future.
Thanks & Regards
David Hales(1044)