Auto populate Fields - between 2 Forms

Auto populate Fields - between 2 Forms

Hi All,

This questions has been asked and answered in past. I have used same logic given in those post. But it is still not working.

I have a form called Employee and has below field.

Form Name: Employee
Employee_ID = Auto Populated
First_Name 
Last_Name

I have created another form called Tour Plan, which has following fields.
Employee_ID = Lookup Drop Down list from Employee.Employee_ID
First Name = Should be populated with First Name from Employee form based on Employee_ID
Last Name = Should be populated with Last Name from Employees form based on Employee_ID

on Employee_ID -> on User Input, i have written below code

rec  =  Employee  [Employee_ID == input.Employee_ID];
input.Last_Name = rec.Last_Name;
input.First_Name = rec.First_Name;

 






but still it is not working. Both field in Tour Plan is coming with no value after selecting employee id from drop down list.

Can anyone please help me