You need to sign in to do that
Don't have an account?
Trudge
Conditionally hide or disable quick action in Lightning.
Hello,
I'm going through the process of building Lightning alternatives to all of our JavaScript buttons from Classic. I'm creating a quick action with prepopulated values to replace a JS button that did the same. The issue I'm running into is that the JS button also included an if/else alert that required the object to have a specific Status for the button to work.
Is there a way to either hide or disable a quick action based on the value of a Status field?
Thanks for any help in advance!
-Chad
I'm going through the process of building Lightning alternatives to all of our JavaScript buttons from Classic. I'm creating a quick action with prepopulated values to replace a JS button that did the same. The issue I'm running into is that the JS button also included an if/else alert that required the object to have a specific Status for the button to work.
Is there a way to either hide or disable a quick action based on the value of a Status field?
Thanks for any help in advance!
-Chad
Please try with below steps and let us know if it works.
First step, create ui:button Next step, add to controller And you can add new class in STYLE Related Salesforce Documentation: Adding and Removing Styles (during runtime)-
- http:// https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/intro_framework.htm (http://https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/intro_framework.htm)
Please let us know if this was helpful.Kindly mark this as solved if it's resolved.
Thanks,
Nagendra