In this blog, we’ll use a cool standard Salesforce functionality to dynamically render quick actions.
Quick Actions are essentially introduced to the record page through Page layout.
However, based on the criteria, we may now hide and show quick actions at the page level. To accomplish this, we can use the highlight panel Upgrade function.
Step 1 :
To edit a page, go to Setup Icon -> Edit Page.
![Hide and Show Quick Actions](https://www.innovalleyworks.com/wp-content/uploads/2022/03/HSQA-img-01-1024x447.jpg)
Step 2 :
Click the Highlight Panel on the Edit Page Screen, then the Upgrade Now Button.
![Hide and Show Quick Actions](https://www.innovalleyworks.com/wp-content/uploads/2022/03/HSQA-img-02-1024x575.jpg)
Step 3 :
Below popup will be shown. Select Migrate option and click on Next.
![Hide and Show Quick Actions](https://www.innovalleyworks.com/wp-content/uploads/2022/03/HSQA-img-03-1024x575.jpg)
Step 4 :
Choose the source layout.
![Hide and Show Quick Actions](https://www.innovalleyworks.com/wp-content/uploads/2022/03/HSQA-img-04-1024x575.jpg)
Step 5 :
Click on the +Add Filter button and enter the filter criteria. Click Done.
![Hide and Show Quick Actions](https://www.innovalleyworks.com/wp-content/uploads/2022/03/HSQA-img-05-1024x575.jpg)
For Example, to show the New Case Quick action button, here we have given the Criteria as
Account Type should be Prospect.
![Hide and Show Quick Actions](https://www.innovalleyworks.com/wp-content/uploads/2022/03/HSQA-img-06-1024x575.jpg)
Step 6 :
Click on Save .Now the Quick action will be shown and hidden based on the given
criteria.
![Hide and Show Quick Actions](https://www.innovalleyworks.com/wp-content/uploads/2022/03/HSQA-img-07-1024x575.jpg)
Quick action is displayed as per the given criteria.
![Hide and Show Quick Actions](https://www.innovalleyworks.com/wp-content/uploads/2022/03/HSQA-img-08-1024x473.jpg)
When the criteria are not met, quick action is invisible.
![Hide and Show Quick Actions](https://www.innovalleyworks.com/wp-content/uploads/2022/03/HSQA-img-09-1024x473.jpg)
In the same way, we can hide and show all the quick actions using this feature.