AnsweredAssumed Answered

How to hide a custom button on create view based on some condition

Question asked by sonesay inthavong on Oct 2, 2018
Latest reply on Oct 3, 2018 by Francesca Shiekh

Hi all

 

I've defined a new button in the cases create view (create.js but with plugin method). I got it to display and behave as intended but I want it to only show if a user is creating the cases from an opportunity i.e Opportinity > Cases subpanel + button to create a new record.

 

Cases can be created in a number of different areas so if that's the case I do not want it 'Save and back to Opportunity' button to show. I'm guessing its going to be in the JavaScript bit but I don't have an examples of how to do this.

 

Outcomes