I need a help. The issue is, I want to disappear / appear a filed in transfer ticket screen (xfer_esc_cr.htmpl) according to value in "New Group" field. If I write the name of the group or select from auto-complete list, it works fine;
<PDM_MACRO name=dtlLookup hdr="New Group" attr=group make_required=yes evt="onChange=\\\"make_transfer_reason_visible()\\\"">
but if I try to select the new group from group list screen, then it does not work. I cannot trigger the new function on onChange event from group list screen. How can I achieve it, could you please help me?
there should be a function backfill_cnt_event(), which is called after coming back from choosing a cnt via list form.
Thanks pacy99, your suggestion worked for me. I was trying to code the complete function which I need, so that took some time. Thank you for your advice.
Due to HTML logic, only value changes commited by user are triggering onchange event: change - Event reference | MDN
- call onchange manually after populating new value: https://api.jquery.com/change/
As pacy99 suggested, there is inner js function designed to catch backfill but looks like it works only with cnt factory.
in our system (r14.1) backfill_cnt_event() works well with grps, too