How to add dynamic Item data(Passenger Names) in sample Flight application

In sample filght application if I added 2 passengers 

 

script as below

My question is if I select option 3 passengers , then how to add 3rd passenger dynamycally throught the script

 

 like below

"Name=pass3", "Value=Third Person", ENDITEM,

Parents Reply Children