How to bind on change event to a Relate Field using custom JavaScript in Sugar CE

I am trying to bind on change event to Relate Field, When i populate relate field by SQS search on-change event works fine BUT when i select record from popup on change event not work.

Any help will be appreciated.
Parents
  • Hi,

    Please have a look at send_back function of popup_helper.js. 

    You can find call back function which populate relate field. I think call back fire set_return function.

    Also have a look at set_return function as it set value of related field - I presume so. 
    You can also change set_return function with your own function.

    Thanks and Regards,
    Alpesh Savaliya
Reply
  • Hi,

    Please have a look at send_back function of popup_helper.js. 

    You can find call back function which populate relate field. I think call back fire set_return function.

    Also have a look at set_return function as it set value of related field - I presume so. 
    You can also change set_return function with your own function.

    Thanks and Regards,
    Alpesh Savaliya
Children
No Data