How to pass the data to multiple fields?