extract code from forms doc:part1