0
Hi I am struggling to build this in SF.
I have tried to create a validation for a managed lightning button (I cannot edit its functionality), on the opportunity level.
The scenario is: If the user should click the button, while a specific text field on the opportunity level is empty, it should not allow the button to work.
I read here that I need to create a VF page, and an Apex class controller, but didn't really succeed doing this.
I tried building the controller as following:
public class ButtonValidationController { if(String.isBlank(Opportunity.Billing_Street__c)) }
Can you give an actual example of the syntax I need to build?
Thank you.