Get the html element of a clicked textbox

0
Maybe I'm overlooking something, but I want get the html-element of a clicked textbox. I know in JS you can use something like: const getClickedElement = (e) => { console.log(e.target) }   Is there a way I can use the JS-actions in Mendix or do I have to use the HTML-snippet widget?
asked
2 answers
0

You can call a nanoflow event on enter of a text box

And then call a JavaScript action in that nanoflow where you can write your custom javascript code

answered
0

You can use a JavaScript / HTML snippet and insert custom Javascript there.

The difficulty is that you would need to place an EventListener on that button and have the Javascript be read after that button is rendered in the DOM.

answered