Skip to main content
Solved

Command Arguments with Modern UI

  • November 10, 2025
  • 1 reply
  • 43 views

Is there a way to add a custom Command Parameter to a modern UI button that gets passed to the PXAction like you were able to do in the classic UI?

Best answer by aleksandrsechin

I was looking for this as well, but haven’t found anything so far.

If there’s really no way to pass an argument in the Modern UI, a possible workaround could be the following:

In a case where you have two buttons that are identical except for the argument, you can split them into two separate PXAction, each calling the same method but specifying a different parameter.

1 reply

Forum|alt.badge.img+4
  • Jr Varsity I
  • Answer
  • November 11, 2025

I was looking for this as well, but haven’t found anything so far.

If there’s really no way to pass an argument in the Modern UI, a possible workaround could be the following:

In a case where you have two buttons that are identical except for the argument, you can split them into two separate PXAction, each calling the same method but specifying a different parameter.