Answer the question
In order to leave comments, you need to log in
How to display a component or a dialog box on the AddEventHandler event in bitrix?
To change transaction data in bitrix crm, for example:
// php
AddEventHandler("crm", "OnAfterCrmDealUpdate", "someFunction");
Answer the question
In order to leave comments, you need to log in
I would do this:
Create an ORM table . On the OnAfterCrmDealUpdate event, write to it the IDs of those users who need to show the popup.
On the OnProlog or OnEpilog event, check for the need to output popup (getList to the table described above. Specify the ID of the current user in the getList parameters).
After a successful check, connect the js script that would open the popup.
Bitrix\Main\Page\Asset::getInstance()->addJs("/path/to/script/file.js");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question