Popup Form with multiple submit buttons

I want to create popup form with multiple submits (use
formaction
). If i create popup with InitPopupForm, than formaction ignored and submit always send to action from
<form asp-action="" asp-controller="Reports">
    @using (Html.Awe().BeginContext())
    {
        @Html.EditorFor(a => a.DateFrom)
        @Html.EditorFor(a => a.DateTo)
        @Html.EditorFor(a => a.Login)

        <button asp-action="AnotherAction1" asp-controller="Reports">Report1</button>
        <button asp-action="AnotherAction2" asp-controller="Reports">Report2</button>
    }
</form>
Buttons always send to Reports/Index. If i create popup with InitPopup, formaction work correctly, but here is problem with validation.
return PartialView("Index", model);
redirects to page instead of replacing the popup content.
owner
Evgeny Alekseev
asked at 01 Oct 2021

Answers 

please Sign In to leave an answer

By accessing this site, you agree to store cookies on your device and disclose information in accordance with our cookie policy and privacy policy .
contact us