Issue #2774195 by lauriii, claudiu.cristea: Passing attributes to field element label is not possible (cherry picked from commit abb19f57)