I tried to set a form method to change the bgcolor of every field without making a method for each element, but it does not work: I got error (The undefined value has no properties.) and also the debugger stucks.
Something like this:
var thiselementname = application.getMethodTriggerElementName();
elements.thiselementname.bgcolor = '#ffff00';
I tried different codes but I obtained no result.
If I use the element name, not the var, it works properly, but there are a lot of fields…