简体   繁体   English

Netsuite在线表单-提交按钮不起作用

[英]Netsuite Online Form - Submit button not working

So I got this form - Online Form but it's not posting. 所以我得到了这个表格- 在线表格,但没有发布。 I've used Suite Answers, Netsuite User Forums and also searching on Stack Overflow to see if my Submit button is wrong but it's not. 我使用了Suite Answers,Netsuite用户论坛,还搜索了Stack Overflow,以查看我的Submit按钮是否错误,但事实并非如此。

I'm using this code - 我正在使用此代码-

<input type="submit" value="Submit">

Copied from one of the Suite Answers - 'Answer ID 9451'. 从套件答案之一中复制-“答案ID 9451”。

I've posted a question on Netsuite User Forums about 3 days ago and not got a reply :( 我大约三天前在Netsuite用户论坛上发布了一个问题,但没有得到回复:(

Secondly - Most of my fields are Mandatory, however, I can't seem to find anything on the Suite Answers to add like a popup error message ie Please fill in Title, First Name, Last Name etc. 其次-我的大多数字段都是必填字段,但是,我似乎在Suite Answers上找不到任何要添加的内容,如弹出错误消息,即请填写标题,名字,姓氏等。

Can anyone help, please? 有人可以帮忙吗?

Thank you 谢谢

The issue is that your submit button falls outside of the form 问题是您的“ submit按钮不在form

To fix this you could easily move the submit button like this 要解决此问题,您可以轻松地像这样移动“ submit按钮

<form>
<div class="row">
    <div class="col-sm-12 col-6">
        <!-- Left Column Form Fields -->
    </div>
    <div class="col-sm-12 col-6">
        <!-- Right Column Form Fields -->
    </div>
</div>
<div class="row">
    <div class="col-12">
        <input type="submit" value="Submit">
  </div>
</div>
</form>

To further understand why the submit button is required in the form tags please read this Submit form using a button outside the <form> tag . 为了进一步了解为什么form标签中需要submit按钮,请使用<form>标签外部的按钮阅读此“ 提交表单”

It is possible to make this happen with JS but looking at your form it appears their isn't much need for this. 可以使用JS实现此功能,但查看您的表单似乎并没有太大必要。 I think we also previously discussed in another question that your limited with use of adding scripts . 我认为我们之前也曾在另一个问题中讨论过,您在使用添加scripts限制。

As far as error text, there does appear to be required fields that shoot an error message if missed. 至于错误文本,如果缺少,似乎会出现一些必填字段,它们会发出一条错误消息。 If you still have an issue with this, let me know. 如果您对此仍有疑问,请告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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