Skip to main content
Solved

How can I programmatically determine if a screen is currently using Modern or Classic UI?

  • July 24, 2025
  • 7 replies
  • 195 views
  • Translate All

darylbowman
Captain II
Forum|alt.badge.img+17

The title says it all.

I want to show a button only if Modern UI is being used.

Best answer by Dmitrii Naumov

​@darylbowman I think you are overthinking it. Could you just set Visible=false in aspx for that action?

View original

7 replies

JSpikowski
Jr Varsity II
Forum|alt.badge.img

I'm assuming the modern UI is JavaScript driven and the old UI is .net webforms.

What version of Acumatica is the modern UI implemented in?

Translate

Forum|alt.badge.img+5

Hello ​@darylbowman I think this post gives some idea about your task.
https://www.acumatica.com/blog/developer-preview-of-acumaticas-new-modern-ui/

I hope it helps.

Translate

darylbowman
Captain II
Forum|alt.badge.img+17

 ...I think this post gives some idea about your task.

No, not really at all.

Translate

darylbowman
Captain II
Forum|alt.badge.img+17

I'm assuming the modern UI is JavaScript driven and the old UI is .net webforms.

What version of Acumatica is the modern UI implemented in?

The Modern UI is built on HTML and TypeScript (which gets built into JavaScript, yes).

It is in preview in 24 R2 and 25 R1.

Translate

Dmitrii Naumov
Community Manager
Forum|alt.badge.img+7

​@darylbowman I think you are overthinking it. Could you just set Visible=false in aspx for that action?

Translate

Tony Lanzer
Captain II
Forum|alt.badge.img+3

​@darylbowman , I think you could also query the SiteMap table to determine the SelectedUI value for the screen.

Translate

darylbowman
Captain II
Forum|alt.badge.img+17

​...set Visible=false in aspx for that action

I think this is the easiest.

The closest I got in TypeScript was defining the action as PXActionState on the view and using a @handleEvent on RowSelected to enable it. The problem is, it didn’t work.

Translate