You need to sign in to do that
Don't have an account?
DaAy
$User.UITheme and $User.UIThemeDisplayed not working on setup section of Lightning pages
Hi,
In the setup section of a lightning enviornment $User.UITheme and $User.UIThemeDisplayed displays Theme3 whereas it should display Theme4d. Is this a bug? Is there a workaround for detecting the environment whether classic or lightning on setup pages? I have a visualforce page embedded in the user detail page and want to detect the environment from it.
Thanks
In the setup section of a lightning enviornment $User.UITheme and $User.UIThemeDisplayed displays Theme3 whereas it should display Theme4d. Is this a bug? Is there a workaround for detecting the environment whether classic or lightning on setup pages? I have a visualforce page embedded in the user detail page and want to detect the environment from it.
Thanks
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)
Thanks for your response. The solution you have given works on the normal pages but on the user detail page which is accessed as part of the setup page it does not work .
can you show me your code and screenshot which page you got error,
Thanks & Regards
David Hales(1044)
go through with
https://salesforce.stackexchange.com/questions/167703/whats-the-expected-behavior-of-userinfo-getuithemedisplayed/167704
https://salesforce.stackexchange.com/questions/111518/firefox-browser-user-uitheme-and-user-uithemedisplayed-return-wrong-value-in
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)
Kloudrac Softwares Pvt. Ltd.
That has not solved the problem. I am still getting value of 'theme3' returned from variables $User.UITheme and $User.UIThemeDisplayed when I access a visualforce page embedded in hte user detail page accessed from Lightning Experience. This only happens in the user detail page, if I were to embed the same code into the Lead detail page or Contact detail page through a visualforce page the value correctly displays value 'Theme4d' in the lightning experience and value 'Theme3' in the classic environment. I am pretty sure this sound like a bug
Thanks
Thanks
What instance are you accessing?
What browser are you using?