Disable "Edit" button on Audit report when "Generate Report" is clicked on Engagement

Kiran333
Tera Contributor

Hello All,

 

I am trying to hide "Edit" button on Audit report when UI action "Generate Report" is selected on Engagement record. I have commented code in ui page "preview_audit_report" but still I am able to see the "Edit" button in workspace view and it is working in native view.

PF the screenshots.

Workspace view:

Kiran333_0-1699454590609.png

 

Native view:

Kiran333_1-1699454684325.png

 

 

 

Thanks,

Kiran

2 REPLIES 2

alvinbm1
Tera Expert
  • Navigate to System UI > UI Actions.
  • Find the UI Action that corresponds to the "Edit" button on the Audit Report.
  • You can add a condition to this UI Action to not display when the "Generate Report" action is selected. This condition can be based on a field value set by the "Generate Report" action.

Kiran333
Tera Contributor

Hello,

 

Thank you for your inputs.

 

It is working in native view but it is not reflecting the same in workspace view.