Detail with fields use logic on the changes

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 0

Like

3 comments

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:

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. 

 

Show all comments