gpt4 book ai didi

html - 我可以使用 Bootstrap for Netsuite 在 Suitelet 中创建自定义表单吗?

转载 作者:行者123 更新时间:2023-12-02 21:07:22 26 4
gpt4 key购买 nike

Suitelet 默认形式很难看。我想使用 Netsuite 中的 suitelet 的 bootstrap 创建自定义表单。我可以这样做吗?我想使用 html 和 suitelet 来显示这个 Bootstrap 表单。

例如 Bootstrap 表单

    <form role="form">
<div class="form-group">
<label for="name">Name</label>
<input type="name" class="form-control" id="name" name="name">
</div>
<div class="form-group">
<label for="email">Email address:</label>
<input type="email" class="form-control" id="email" name="email">
</div>

<button type="submit" class="btn btn-default">Submit</button>
</form>

我可以使用suitlet默认获取API获取表单的获取值

    var email= request.getParameter('email');
var name = request.getParameter('name');

var newCust = nlapiCreateRecord('customer');
newCust.setFieldValue('xxxx', name);
newCust.setFieldValue('xxxx', email);
var id = nlapiSubmitRecord(newCust);

最佳答案

看看这个,我在 Suitescript 2.0 中创建了这个 Suitelet。这是一个黑客但工作正常。只需添加 POST 条件即可从表单中获取数据。 https://ursuscode.com/netsuite-tips/loading-custom-html-and-bootstrap-within-a-suitelet-form/

End result

关于html - 我可以使用 Bootstrap for Netsuite 在 Suitelet 中创建自定义表单吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35403519/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com