Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6670307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:15:10+00:00 2026-05-26T03:15:10+00:00

I have a form that has a section with a dynamic number of inputs,

  • 0

I have a form that has a section with a dynamic number of inputs, depending on the options the user has chosen. When the configuration posts back to the server, I want to concatenate the different values of that section into an xml string and store them in the database as one value. The possible combinations of fields are finite; each of the three possibilities is built as a partial view that I include on load, and reload via ajax if the dropdown specifying the type of config changes.

Each partial view is typed, and has validation properties associated with it.

Here’s what I want to do: Upon the submit button being clicked, I want validation to run against all fields, but before actually submitting the form, I want to invoke a script to build the xml string and store it in a hidden input.

How do I “inject” a step between the validation and submission without having to do a bunch of custom work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:15:11+00:00Added an answer on May 26, 2026 at 3:15 am

    Why does it matter that it be done after validation? Just hook your submit button clicked event, then call submit. So it does a little work if the form isn’t valid. Not a huge deal really.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form that has 8 columns and a variable number of rows
i have a form that has a multiple select drop down. a user can
I have a complex form that has a static section and one that can
within a form I have a section that allows the user to build out
I have an app that has a rather large help section in PDF form.
I have a form that has multiple fields, and for testing purposes is there
I have a form that has a public property public bool cancelSearch = false;
I have a form that has a few similar controls and the parent contains
I have a form that has a group of 3 text_fields. I need two
I have a form that has many long-methods. My quest is: What is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.