Hi everyone,
I'm customizing EspoCRM for a telco sales CRM. I've renamed the Opportunity entity to Funnel and I'm using the Kanban view for managing stages.
I'm trying to show a confirmation message when a user drags a funnel card to the "Cierre" (Closed) stage. The idea is to alert the user that once the funnel is closed, it will disappear from their view and become inaccessible to them (it goes to a back-office team).
So far, I’ve tried adding logic to a custom Controllers/Opportunity.php with a postOrder() method, but EspoCRM seems to completely ignore the contents of the custom/ folder.
I've also tried editing frontend files, like creating a custom kanban.js under client/custom/src/views/opportunity/, but that doesn’t seem to be picked up either.
My questions are:
Any help or guidance would be much appreciated! 🙏
Thanks in advance,
Cristóbal
I'm customizing EspoCRM for a telco sales CRM. I've renamed the Opportunity entity to Funnel and I'm using the Kanban view for managing stages.
I'm trying to show a confirmation message when a user drags a funnel card to the "Cierre" (Closed) stage. The idea is to alert the user that once the funnel is closed, it will disappear from their view and become inaccessible to them (it goes to a back-office team).
So far, I’ve tried adding logic to a custom Controllers/Opportunity.php with a postOrder() method, but EspoCRM seems to completely ignore the contents of the custom/ folder.
I've also tried editing frontend files, like creating a custom kanban.js under client/custom/src/views/opportunity/, but that doesn’t seem to be picked up either.
My questions are:
- What is the correct way to intercept the drag-and-drop stage change in the Kanban view?
- Where can I add a JavaScript confirmation prompt that will run before the stage change is accepted?
- Is there a way to override the default Kanban behavior cleanly and reliably?
Any help or guidance would be much appreciated! 🙏
Thanks in advance,
Cristóbal
Comment