tiger
03/28/2025, 7:32 AMCeligo AI
03/28/2025, 7:32 AMAI generated answer (using internal Slack threads):To create a Suitelet page to submit a form with a dropdown without any internal id, you can use the SuiteScript API to create a form and add a select field to it. Here is a basic example:
javascript
function suitelet(request, response){
if (request.getMethod() == 'GET') {
var form = nlapiCreateForm('My Form');
var select = form.addField('custpage_select', 'select', 'Select Field');
select.addSelectOption('', '');
select.addSelectOption('1', 'Option 1');
select.addSelectOption('2', 'Option 2');
response.writePage(form);
} else if (request.getMethod() == 'POST') {
// handle form submission
}
}
In this example, a Suitelet is created with a form that has a select field. The select field has no internal id, but it has a script id of 'custpage_select'. The select field has three options: an empty option, 'Option 1', and 'Option 2'. When the form is submitted, the POST method will be triggered where you can handle the form submission.
Please note that this is a basic example and you may need to adjust it to fit your specific needs. For example, you may want to add more fields, add validation, or handle the form submission differently.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
03/28/2025, 7:33 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830080867
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829638183
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82810533
Celigo AI
03/28/2025, 7:33 AM