You need to sign in to do that
Don't have an account?
Andrey Bolkonsky
Javascript Button to Launch Flow
I have a custom detail page button that launches a flow, however validation rules do not work with custom buttons so I am going to have to use Javascript to Validate the record before it is passed into my flow.
I just learned Apex but know nothing about javascript. How would I turn the below button into a javascript button that won't allow users to access the flow unless certain fields are filled in?
I just learned Apex but know nothing about javascript. How would I turn the below button into a javascript button that won't allow users to access the flow unless certain fields are filled in?
/flow/Submission?AnRevID={!Annual_Review__c.Id}&OppID={!Annual_Review__c.OpportunityId__c}&AeID={!Annual_Review__c.Account_ExecutiveId__c}&PmID={!Annual_Review__c.Portfolio_ManagerId__c}&OppOwnerName={!Annual_Review__c.OppOwnerName__c}&OppOwnerID={!Annual_Review__c.OppOwnerID__c}&Status={!Annual_Review__c.Status__c}&AnRevName={!Annual_Review__c.Name}&AccountID={!Annual_Review__c.AccountId__c}&OPM={!Annual_Review__c.OPM__c}&OppName={!Annual_Review__c.Opportunity__c}&Product={!Annual_Review__c.Product__c}&OppOwnerState={!$User.State}
Try the below code :-
Please mark it as Best Answer so that it can help others in the future.
Regards,
Priya Ranjan