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.

Privacy overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.


To see a full list of the cookies we use and learn more about their purposes, visit our Privacy Policy.