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.
Did you know that with WEBCON you can automate virtually any process? Even baking cookies 🍪
 
Speaking of cookies: we use the ones that are essential for our website to function properly, as well as additional ones that help us customize our content to your preferences. If you don’t mind cookies, click Accept. If you want to learn more, explore settings.
Settings