function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BManojKumarBManojKumar 

How to override the "Save & Add Product"

Dear All,

 

I have prompted the users to add products whenever they are creating a new opportunity. The save button will redirect the users to product selection page once they saved the opportunity.

 

What I need is , I would like to prompt a set of users from adding a product. But I am not sure how to do this..

 

Is their a way to override the "Save & Add product" button or adding a condition to check for the users role , so that it will redirect the particular users to opportunity details page rather than the product selection page. I have trigger to add product  for the opportunity created by that particuler users.

dnakonidnakoni

Can we see your Save button code that redirects the users to product selection page?