S
Santosh Patel
Guest
I looked through the related functions again and apparently we do handle onchange events for Reference fields, picklists and Org Data selectors but not lookups. Will fix this as a bug. In the meanwhile you can use the following code and avoid using the setInterval solution. // $('R114854155').attr("hidenChange", " your_javascript_code_that_would_execute_when_onChange_would_have_fired"); $('R114854155').attr("hidenChange", "console.log($('#R114854155').val());"); Couple of things to note here... - hidenChange is our implementation that is already in place but does not execute for Lookup fields. The registered onChange events on other fields (where this already works) translate to this event and is evaluated as mentioned below. - the javascript code that is passed as 2nd argument will be executed using the eval() function. - using 'this' reference in the 2nd argument will refer to the top level window object. - hidenChange is not a typo, use it as is.
Continue reading...
Continue reading...