Is it possible to have variable number of fields based on input?