I have an html form in a view that needs to be reset from time to time. Problem is, fields enable/disable based on input. Therefore, the only way to truly reset the form is to reload the view (I would prefer that the entire page is reloaded). Due to several scenarios, simply refreshing does not work. I need the equivalent to Response.Redirect() and have the view redirect to itself... Haven't been able to find a good solution yet.
I have tried:
-Adding an ActionResult in the controller that
public ActionResult ResetNoteReport()
{
return RedirectToAction("NoteReport");
}
-Setting a click event on the button itself that
onclick="window.location.href('<%= Url.Action("NoteReport")%>');"
-Removing input and setting values to null or "" via JQuery...
Among plenty of other stabs... Any help would be greatly apreciated! Thanks!