set fields dynamicaly with the setFields event