You should be able to use that same example, but then add text fields.
Append the ID of the added item to the name of the quantity field and you can specify the correct quantity to add that way. The same technique and steps from several years ago should still be valid today.