hello everyone. How can I conditionally set the Pay button to not be visible when I select a specific payment method.

hello everyone. How can I conditionally set the Pay button to not be visible when I select a specific payment method.
Best answer by aaghaei
I believe the suggested even handler for UI controls status management is RowSelected and don’t forget to set CommitChanges = true for the driving field. RowUpdated will be triggered only if a change is made and if a document with the specific type is selected and no change is made the button will be visible. Please note there is a known issue in Acumatica that if a button is added to the user favorite, then always will be visible.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.