Make List View for User Input Dynamic


I am running into an issue where I am trying to have user input into a list on a dynamic list itself. Let me clarify:

Right now, I have it set up so the user enters a subcategory into a list. Right now, the list instances are populated with a global variable that is changed via a button/ script to add a new instance and therefore a new list item.

However, the issue I am now running into is I need the user to input dates for each time that category is used into a list where they enter the quarter and year (via number input components). However, because the subcategories are dynamic, I can not make global variables for each.

I have tried making a script that increases the instances of itself when a user inputs new information, but this resulted in delays and copying over the previously input.

Any ideas?