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 210281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:59:28+00:00 2026-05-11T17:59:28+00:00

I have an MVC application which has a set of fields for contact details

  • 0

I have an MVC application which has a set of fields for contact details to be added for a person (Email, Phone, Fax, AIM… etc). Initially I present a dropdown for type of input and and input field for the corresponding data, along with a link to add a further set of fields.

When complete I have a submit button to submit the form.

I am happy with an approach for adding a further set of fields using the add link and javascript, but I can’t work out how to do this without javascript.

I would be grateful for some pointers in the best direction to solve this. I am not particularly precious about keeping the add link, it could be a button, but I would rather the url not change in the address bar.

Thanks, Richard

  • 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-11T17:59:28+00:00Added an answer on May 11, 2026 at 5:59 pm

    This is basically the client side of the answer. If you have to do it without JavaScript and without changing the URL, that basically leaves a POST.

    <form action="" method="post">
    <input name="field1"/>
    <input name="field2"/>
    ...
    <input name="add_field_submit" type="submit" value="Add Field"/>
    ...
    <input name="done_submit" type="submit" value="Submit"/>
    

    On the server, you detect whether they clicked Add Field (add_field_submit is present) or Submit (done_submit is present). If they clicked Add Field, you add a field and serve the view. Otherwise, it’s done.

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

Sidebar

Related Questions

I have an ASP.NET MVC 3 application which has a post action called Create
I have a Spring MVC application which has a public front-end WAR, an admin
I have downloaded a sample mvc application which has a fair bit of code
My settings is as follows: I have an MVC web application (EbWebApp) which has
I have an MVC 3 Application which has JSON POST'ed to an Action. Everything
I have MVC webApi application which works with Unity . I have to resolve
I have an MVC application which is my marketing website, and two other regular
I have a Spring MVC application which uses FreeMarker as View technology (But maybe
I have a C# MVC application which I need to output the following data
I have a ASP.NET MVC application which is build up as an assembly that

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.