How can I use input data to create a label for another field?