# Is it possible to populate the row and column headings in a matrix field from values entered in another field?

**hilltopkennels**A user would enter the names of their dogs.

They would enter the number of kennel runs they need.

If the number of kennel runs is less than the number of dogs then some dogs need to share.

If it's possible a matrix field would be shown with 1 row for each kennel and 1 column for each dog.

They would then click in the matrix field to choose where the dogs are to be located.

Rufus Fido Spot Beethoven

Kennel1 x x

Kennel2 x x

How would I do that?

Many thanks,

Simon

- JotForm Support
**Welvin**Hi Simon,

You can do that with update a field conditional logic. Here's a guide:

In the output field, you have the option to choose the matrix field. The input boxes are presented in a radio button. It is straightforward, just select what input will be filled when the logic is meet.

Thanks

**hilltopkennels**That isn't what I needed, I need to be able to put the use the value entered to define the column heading of the matrix field, not one of the cells below the column heading

- JotForm Support
**jonathan**Unfortunately there is no such option or function within the Form Builder that will allow you to dynamically change the Matrix field column/header names.

It can probably be achieved by using the

**form's source code**, and then inject your own script that will modify the Matrix text column name base on a condition. Please take note that this will require separate programming to come up with the needed function code.Thanks.

**paulneale**