我正在尝试在我的表单提交按钮上保存 salesforce 中的值。我不知道如何在带有验证的视图剃须刀中使用表单操作方法....
这是我的salesforce代码,我需要在表单的提交按钮上实现它,以便它在salesforce中输入:
<form action="https://www.salesforce.com/servlet/..." method="POST" >
<input type=hidden name="oid" value="111">
<input type=hidden name="retURL" value = "http://test" />
这是我的视图页面:
@model nd.Models.PopupDemoModel
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm()){
@Html.ValidationSummary(true)
<fieldset>
<div class="editor-label grid_2">
@Html.LabelFor(model => model.first_name )
</div>
<div class="editor-field grid_3">
@Html.TextBoxFor(model => model.first_name , new { @class = "demo-field-longer" })
</div>
<div class="grid_3 error long" style="margin-left:250px">
@Html.ValidationMessageFor(model => model.first_name )
</div>
<div class="clear"></div>
<div class="editor-label grid_2">
@Html.LabelFor(model => model.email )
</div>
<div class="editor-field grid_3">
@Html.TextBoxFor(model => model.email , new { @class = "demo-field-longer" })
</div>
<div class="grid_3 error long" style="margin-left:250px">
@Html.ValidationMessageFor(model => model.email )
</div>
<div class="clear"></div>
<div class="editor-label grid_2">
@Html.LabelFor(model => model.phone )
</div>
<div class="editor-field grid_3">
@Html.TextBoxFor(model => model.phone , new {@class="demo-field-longer"})
</div>
<div class="grid_3 error long" style="margin-left:250px">
@Html.ValidationMessageFor(model => model.phone )
</div>
<div class="clear"></div>
<div class="editor-label grid_2">
@Html.LabelFor(model => model.company )
</div>
<div class="editor-field grid_3">
@Html.TextBoxFor(model => model.company , new { @class = "demo-field-longer" })
</div>
<div class="grid_3 error long" style="margin-left:250px">
@Html.ValidationMessageFor(model => model.company)
</div>
<div class="clear"></div>
<div class="clear"></div>
<div class="grid_2 sub-spacer"> </div>
<div class="editor-field grid_2 submit">
<input type="submit" value="Submit" id="demo-submit-button"/><br />
@ViewData["DemoMessage"]
</div>
</fieldset>
}
任何帮助表示赞赏....