我目前正在为我的餐厅网站添加嵌入式表单以进行比赛。我使用过mailchimp的嵌入式表单,并尝试添加自己的输入字段,但是当我单击“提交”时,不会捕获我创建的新输入字段。
我不知道我是否需要在mailchimp上输入字段,或者jquery是否能够捕获它。有人有过类似的经历吗?
我尝试添加新的jquery字段和mce名称。我试图为Mailchimp上的数据添加新列,但无法创建新列。
</style>
<div id="mc_embed_signup">
<form action="https://tocamadera.us17.list-manage.com/subscribe/post?u=26894a20de6716a2478fb598a&id=047b0df90d" class="validate" id="mc-embedded-subscribe-form" method="post" name="mc-embedded-subscribe-form" novalidate="" target="_blank">
<div id="mc_embed_signup_scroll">
<h2>
<br>
</h2>
<div class="indicates-required"><span style="color: rgb(145, 121, 82);"><span class="asterisk">*</span> indicates required</span>
</div>
<div class="mc-field-group"><span style="color: rgb(145, 121, 82);"><label for="mce-FNAME">First Name </label><input type="text" value="" name="FNAME" id="mce-FNAME"></span></div>
<div class="mc-field-group"><span style="color: rgb(145, 121, 82);"><label for="mce-LNAME">Last Name </label><input type="text" value="" name="LNAME" id="mce-LNAME"></span></div>
<div class="clear" id="mce-responses">
<div class="mc-field-group"><span style="color: rgb(145, 121, 82);"><label for="mce-BDAY">Birthday<span class="asterisk">*</span></label>
<input type="date" value="" name="BDAY" id="mce-BDAY">
</span>
</div>
<div class="mc-field-group"><span style="color: rgb(145, 121, 82);"><label for="mce-EMAIL">Email Address<span class="asterisk">*</span></label>
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</span>
</div>
<div class="mc-field-group"><span style="color: rgb(145, 121, 82);"><label for="mce-IGHandle">Instagram Handle<span class="asterisk">*</span> </label>
<input type="text" value="" name="IGHandle" id="mce-IGHandle">
</span>
</div>
<div class="mc-field-group"><span style="color: rgb(145, 121, 82);"><label for="mce-FNAME1">Friend's Instagram Handle </label><input type="text" value="" name="IG1" id="mce-FNAME1"></span></div>
<div class="mc-field-group"><span style="color: rgb(145, 121, 82);"><label for="mce-FNAME2">Friend's Instagram Handle </label><input type="text" value="" name="IG2" id="mce-FNAME2"></span></div>
<div class="mc-field-group"><span style="color: rgb(145, 121, 82);"><label for="mce-FNAME3">Friend's Instagram Handle </label><input type="text" value="" name="IG3" id="mce-FNAME3"></span></div>
<div class="response" id="mce-error-response" style="display:none;"><span style="color: rgb(145, 121, 82);"><br></span></div>
<div class="response" id="mce-success-response" style="display:none;"><span style="color: rgb(145, 121, 82);"><br></span></div>
</div>
<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div aria-hidden="true" style="position: absolute; left: -5000px;"><span style="color: rgb(145, 121, 82);"><input type="text" name="b_26894a20de6716a2478fb598a_047b0df90d" tabindex="-1" value=""></span></div>
<div class="clear"><span style="color: rgb(145, 121, 82);"><input type="submit" value="ENTER" name="subscribe" id="mc-embedded-subscribe" class="button"></span></div>
</div>
</form>
</div>
<script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js"></script>
<script type="text/javascript">
(function($)
{
window.fnames = new Array();
window.ftypes = new Array();
fnames[0] = 'EMAIL';
ftypes[0] = 'email';
fnames[1] = 'FNAME';
ftypes[1] = 'text';
fnames[2] = 'LNAME';
ftypes[2] = 'text';
fnames[3] = 'ADDRESS';
ftypes[3] = 'address';
fnames[4] = 'PHONE';
ftypes[4] = 'phone';
fnames[5] = 'IGHandle';
ftype [5] = 'ighandle';
ftype [6] = 'BDAY';
ftype [6] = 'bday';
}(jQuery));
var $mcj = jQuery.noConflict(true);
</script>
我希望将所有输入都转移到mailchimp表格中。