Hello Community!
I have a detail made with this
implementation. https://academy.creatio.com/docs/developer/front-end_development/creati…;
By any chance someone knows how to use dependency o onchange method on the fields. The idea is to do a logic when the field change.
Regards,
Like
Hi Federico,
you must add an attribute in JS code of the detail page, specify which columns change that attribute would be listening to, and a method which would trigger when its changed:
"City": { "dependencies": [ { columns: ["City"], methodName: "onCityChanged" } ] }
Hello Federico,
Hope you're doing well.
If I understood your request correctly, the next articles would help you to perform the required business task:
- https://customerfx.com/article/triggering-an-event-when-a-field-is-chan…
- https://community.creatio.com/questions/fields-will-be-auto-filled-with…
- https://community.creatio.com/questions/how-trigger-event-field-change
Best regards,
Roman
Thanks formar the answer.
I'd tried with attributes and dependeces but looks like is not working on the BaseFieldsDetailV2, like this is a special detail may be there is another way to handle the change event.