Aggregate all my textbox values into a list before posting the form
===

I am building an MVC form with a bunch of textboxes. However, my model requires a list of strings. What I'm trying to do is have it so when the user hits submit, before the form posts, it takes all of the values in the text box, adds it to a List<string> and appends it to the model for submitting. I'm stuck at how I would be able to do this?

The reason I need to do this is that I need the form to be dynamic in that the # of fields can grow and the page adapts to that. I can't hardcode the individual fields into the model as the model would need to adapt to the length of the form.

Here's my code so far:

The HTML

    @using (Html.BeginForm(new { id = "feedbackForm" }))
    {
    <fieldset>
    
        @foreach (Feedback_Num_Questions questionForm in FeedbackSurveyQuestions)
        {
            string textBoxID = "feedbackq";

            questionNumberTextBoxes++;

            textBoxID = textBoxID + questionNumberTextBoxes.ToString();
        
            <input type="text" id="@textBoxID" />
        }

        <input type="text" id="txtAdditionalComments" />

        <input type="submit" value="Create" name="btnFeedbackSubmit" id="btnSubmitFeedbackForm" />

        </fieldset>
    }

The Model:

        public class PostCourseFeedbackModel
        {
            public List<string> responseList { get; set; }
            public decimal pelID { get; set; }
            public string employeeid { get; set; }
        }

Thanks for the help!