populate text feild from lookup in new ui

populate text feild from lookup in new ui

Want to populate a text field from lookup field value in the same form.

E.g.
Brand & Category both are lookup field. 

input .Item_Name = input .Brand + " " + input .Category;

This return number instead of name...