only selected Item type values must be shown in Item names in subform

only selected Item type values must be shown in Item names in subform

Hi Guys,

I have created a sub-form  with field names -  Items (lookupfield) and Item names (lookup field)  .

Now my Question is If i selected any name in Items Field then whats are the names present under that items name only that items name only it should show.

For Suppose, If i select Fruits in Items  then in Item names it must show only fruits names.I will attach the screenshot of the form ., Can any one help me solution with the script.