What is the JavaScript event that triggers after a link field is selected?

Hi Frappers,

I’m developing a custom app and need to identify the selected item in a department link field within a form using JavaScript. Once a user selects an option from this link field, how can I determine which item was chosen?
I’d like to learn how to wire up the department event in the JavaScript form page.

Hi @thinkdigital:

Just reference the field …
console.log(frm.doc.department)

Maybe i missunderstood something …
Hope this helps.

Hi @avc ,
Thank you for your response, I have to load the child table based on the selected item.
I need to find out if there’s a JavaScript event that triggers after a link field is selected.

Thank you @avc. It’s working now.

1 Like