Determine form phases by reading the data attribute of each section.