generates CSV to a hidden field