简体   繁体   中英

Submit form post to hubspot

I have this form (I put the code below), and I need to add a button to submit the form via POST to the url of hubspot, any idea please...

@model OxfordEconomics.Users.ViewModels.CreateTrialUserHubspotViewModel
@using OxfordEconomics.Users.ViewModels;

 @using (Html.BeginFormAntiForgeryPost(Url.Action("FreeTrialForm","FreeTrial", new { area = "OxfordEconomics.Users" }))) {
 <div>
             <div class="span12">
                <h1>@T("Free trial registration form")</h1>
                <p>@T("Please fill out the form below to request a free    trial, or ") <a href="/about-us/sales-and-service/inquiries">@T("contact a    service representative")</a>. </p>
                <p class="required-fields"><i class="icon-exclamation-sign red-icon"></i>: Required fields</p>

            </div>
            <fieldset>
                <div>
                    @Html.LabelFor(model => model.FirstName)
                </div>
                <div>
                    @Html.EditorFor(model => model.FirstName)
                    <i class="icon-exclamation-sign red-icon" title="Required field"></i>
                </div>
                <div>
                    @Html.LabelFor(model => model.LastName)
                </div>
                <div>
                    @Html.EditorFor(model => model.LastName)
                    <i class="icon-exclamation-sign red-icon"    title="Required field"></i>
                </div>

        <div class="row">
            <div class="span8 offset1">
                <button type="submit" name="submit.Filter"      value="@T("Filter")">@T("Apply")</button>
            </div>
        </div>
    </fieldset>
</div>

}

只需使用普通形式的标签而不是使用防伪帮助程序即可。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM