Is it usual to put a form inside a collection?

By custom js - create 19 hidden feilds and put the values from the collection inside those feilds (each - get data attribute and append).

The solution of this idea is 0.5-1 hour of coding. Hard to solve this by forum answer.