set up records field wrapper code.