Skip to main content
1 respuesta
  1. 13 mar 2020, 3:17 p.m.
    You could make use of <apex:variable var="classic" value="{! $User.UIThemeDisplayed == 'Theme2' || $User.UIThemeDisplayed == 'Theme3' }"/> to check whether UI is Classic or lightning and use Rendered attribute in <apex:commandButton rendered = "{! !classic}"/>.This helps to display the command button only in lightning view.