Hello.
Is it possible to access a form control via its name, rather than it’s id?
It could be really useful. For example, when you try to implement a onValidationError function on the form, you get the form control key (= name) and not the id. By accessing the field config, I could display an error message box with the invalidMessage of that form control.
Actually, my only solution to do this is to have an form control id defined explicitly as equal to the form control name. Or build a JS method that would look through the form for each form control… Maybe it already exists? As the rules of a form are defined by using the form control name too.
Thanks in advance,
Jonathan Lannoy