dependent() with field is an array

dependent() with field is an array

UMR5558UMR5558 Posts: 41Questions: 13Answers: 0

Hello
I use API depedent() with field as an array like this ['capture.transponder', 'capture.eartag_left', 'capture.eartag_right'] and the event: 'focusout'.
I would like to know in the fetch wich field is focusout because i want to change class of this field in some cases.
How can i do this.
Thanks a lot.
Lionel

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Hi Lionel,

    I don't think that is actually possible at the moment. You'd need to split it into three different functions. Could you still have a reusable function, but you would need three dependent() calls to be able to tell them apart.

    Allan

This discussion has been closed.