If the Leads is in particular status the users are not allow to create Cases from Leads subpanel ( the button '+' in subpanel)
I can't hide the button but i have to show an alert.
I am using SugarCRM pro 7.2
Thank you
If the Leads is in particular status the users are not allow to create Cases from Leads subpanel ( the button '+' in subpanel)
I can't hide the button but i have to show an alert.
I am using SugarCRM pro 7.2
Thank you
I am unclear if your comment about not being able to hide the button means you are not familiar with the process or that you have to keep it on the screen. If the former, it definitely can be done, although from a cosmetic standpoint, it is probably best if you instead leave the button on the screen and disable its functionality via the "disabled" CSS class.
You can manipulate the behavior of the button by extending the panel-top view's controller (panel-top.js) to check the data of the parent record and manipulate the css class on the button and show the alert. Some of the concepts for checking the parent record are in this snippet, although, in the example they are implemented in a different component of the subpanels:
I am unclear if your comment about not being able to hide the button means you are not familiar with the process or that you have to keep it on the screen. If the former, it definitely can be done, although from a cosmetic standpoint, it is probably best if you instead leave the button on the screen and disable its functionality via the "disabled" CSS class.
You can manipulate the behavior of the button by extending the panel-top view's controller (panel-top.js) to check the data of the parent record and manipulate the css class on the button and show the alert. Some of the concepts for checking the parent record are in this snippet, although, in the example they are implemented in a different component of the subpanels:
Hi Angel, i was looking for a solution on your blog .... but i didn't find it...
I would like to show an alert instead to hide the button.
If the Lead has a specific value the users cannot create Cases from the Leads subpanel.
I have to show an alert
That's it.
But i am not able to change the behavior of the button ("+") in Leads subpanel.
Can you help me.
Thank you.