Home > Forum > Rules, JS, SQL > JavaScript - Get ID of field that triggered function

JavaScript - Get ID of field that triggered function
0

Hi,

How can I use JavaScript to get the ID of a field that triggered a function?
The goal is - if JavaScript validation fails on field value change, I would like to revert the value of the changed field back to the default value )or previous value).

I was researching the uxContext input parameter, but I was unable to find a function or value in the uxContext structure that would contain information about the ID of the field, that triggered the function.

Thanks!

Nobody has replied in this thread yet.