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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:28:27+00:00 2026-06-13T12:28:27+00:00

I have a simple setup but cannot figure out why this wont work. Here’s

  • 0

I have a simple setup but cannot figure out why this wont work. Here’s what I have set up:

  • MVC4
  • Html.EnableUnobtrusiveJavaScript() and
    Html.EnableClientValidation() enabled
  • jQuery 1.6.2,
    jquery.validate.min.js, and jquery.validate.unobtrusive.min.js
    referenced
  • No events bound to form or button submit

The problem is, it seems to work on the client side, where I can submit a form and it shows the appropriate validation errors. However, when I then properly fill out the form and hit submit, it does nothing and the last error message I had previously is still displayed. If I go back and clear fields, the validation appears to still be working (validation summary is updated appropriately). If I submit the first time with all fields correctly entered, it works just fine. It’s only if I first have an error that it cannot submit again.

The model only has [Required] on firstname, lastname, and email. No other attributes. Also, FormFieldFor is just a wrapper for EditorFor().

Code below. Any ideas? Thanks.

@model AscendOne.CareOne.Mvc.Models.ResourceGuideUserModel

@*Form*@
<form id="guide-download-submit" method="get" action="/leads/" target="_blank">

    @{
        Html.EnableUnobtrusiveJavaScript();   
        Html.EnableClientValidation();
    }


    @Html.ValidationSummary()

    @if (Model.CampaignID != null)
    {<input type="hidden" name="CampaignID" value="@Model.CampaignID" />}
    @if (!String.IsNullOrWhiteSpace(Model.PDFUrl))
    {<input type="hidden" name="RedirectUrl" value="@Model.PDFUrl" />}

    <fieldset>
        @Html.FormFieldFor(m => m.FirstName)
        @Html.FormFieldFor(m => m.LastName)
        @Html.FormFieldFor(m => m.Email)
    </fieldset>

    <button type="submit">Download The Guide</button>

</form>




public class ResourceGuideUserModel
    {
        public string CampaignID { get; set; }
        public string PDFUrl { get; set; }

        [Required]
        [DisplayName("First Name:*")]
        public string FirstName { get; set; }

        [Required]
        [DisplayName("Last Name:*")]
        public string LastName { get; set; }

        [Required]
        [DisplayName("Email Address:*")]
        public string Email { get; set; }
    }
  • 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-06-13T12:28:28+00:00Added an answer on June 13, 2026 at 12:28 pm

    Well, turns out it was my fault. Thanks for the replies. Seems another deeply-buried script was killing my form submit after the 1st try. Removing this resolved the issue. Thanks again though.

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

Sidebar

Related Questions

This seems like a simple to answer question, but I cannot figure out how
I started using NHibernate today, but I cannot figure out how I setup a
I have a pretty simple setup that I cannot get to work in silverlight.
So I have a simple setup going here where I load up a file
If I have a simple class setup like this: class MyClass { private string
I have spent 8 hours or so today trying to figure this out. I
This seems like a simple and common task, but we cannot get it to
I have a simple menu set up like this: <ul> <li>Item </li> <li>Item </li>
I have a simple setup, where there are Products and Images. Products have many
I have a very simple Setup project that copies three dlls into the GAC.

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.